Remove support for backticks from the grammar and compiler.

Still need to remove traces of the UNARY_CONVERT opcode.
This commit is contained in:
Brett Cannon 2006-08-25 04:28:18 +00:00
parent 8b6de130c6
commit cf588f6448
7 changed files with 86 additions and 154 deletions

View file

@ -721,7 +721,6 @@ opcode_stack_effect(int opcode, int oparg)
case UNARY_POSITIVE:
case UNARY_NEGATIVE:
case UNARY_NOT:
case UNARY_CONVERT:
case UNARY_INVERT:
return 0;
@ -2983,10 +2982,6 @@ compiler_visit_expr(struct compiler *c, expr_ty e)
return compiler_compare(c, e);
case Call_kind:
return compiler_call(c, e);
case Repr_kind:
VISIT(c, expr, e->v.Repr.value);
ADDOP(c, UNARY_CONVERT);
break;
case Num_kind:
ADDOP_O(c, LOAD_CONST, e->v.Num.n, consts);
break;