diff Python/ast.c @ 39676:eb2f70fdbf32

Remove support for backticks from the grammar and compiler. Still need to remove traces of the UNARY_CONVERT opcode.
author Brett Cannon <bcannon@gmail.com>
date Fri, 25 Aug 2006 04:28:18 +0000
parents efe3f2c0da5e
children f87a3e61853d
line wrap: on
line diff
--- a/Python/ast.c	Fri Aug 25 04:24:12 2006 +0000
+++ b/Python/ast.c	Fri Aug 25 04:28:18 2006 +0000
@@ -1190,7 +1190,7 @@
 ast_for_atom(struct compiling *c, const node *n)
 {
     /* atom: '(' [yield_expr|testlist_gexp] ')' | '[' [listmaker] ']'
-       | '{' [dictmaker] '}' | '`' testlist '`' | NAME | NUMBER | STRING+
+       | '{' [dictmaker] '}' | NAME | NUMBER | STRING+
     */
     node *ch = CHILD(n, 0);
     
@@ -1276,13 +1276,6 @@
 	}
 	return Dict(keys, values, LINENO(n), n->n_col_offset, c->c_arena);
     }
-    case BACKQUOTE: { /* repr */
-	expr_ty expression = ast_for_testlist(c, CHILD(n, 1));
-	if (!expression)
-	    return NULL;
-
-	return Repr(expression, LINENO(n), n->n_col_offset, c->c_arena);
-    }
     default:
 	PyErr_Format(PyExc_SystemError, "unhandled atom %d", TYPE(ch));
 	return NULL;