Mercurial > cpython-lru_cache-weakref
diff Python/Python-ast.c @ 40588:4bab65fcca8e
Some more changes related to the new except syntax and semantics,
by Collin Winter.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 10 Jan 2007 18:51:35 +0000 |
| parents | 6bd65cb5b952 |
| children | 47f9efdc0855 |
line wrap: on
line diff
--- a/Python/Python-ast.c Wed Jan 10 16:19:56 2007 +0000 +++ b/Python/Python-ast.c Wed Jan 10 18:51:35 2007 +0000 @@ -1836,7 +1836,7 @@ } excepthandler_ty -excepthandler(expr_ty type, expr_ty name, asdl_seq * body, int lineno, int +excepthandler(expr_ty type, identifier name, asdl_seq * body, int lineno, int col_offset, PyArena *arena) { excepthandler_ty p; @@ -2928,7 +2928,7 @@ if (PyObject_SetAttrString(result, "type", value) == -1) goto failed; Py_DECREF(value); - value = ast2obj_expr(o->name); + value = ast2obj_identifier(o->name); if (!value) goto failed; if (PyObject_SetAttrString(result, "name", value) == -1) goto failed;
