mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Some more changes related to the new except syntax and semantics,
by Collin Winter.
This commit is contained in:
parent
b940e113bf
commit
16be03e4a2
10 changed files with 46 additions and 32 deletions
|
@ -2899,11 +2899,9 @@ ast_for_except_clause(struct compiling *c, const node *exc, node *body)
|
|||
else if (NCH(exc) == 4) {
|
||||
asdl_seq *suite_seq;
|
||||
expr_ty expression;
|
||||
expr_ty e = ast_for_expr(c, CHILD(exc, 3));
|
||||
identifier e = NEW_IDENTIFIER(CHILD(exc, 3));
|
||||
if (!e)
|
||||
return NULL;
|
||||
if (!set_context(e, Store, CHILD(exc, 3)))
|
||||
return NULL;
|
||||
expression = ast_for_expr(c, CHILD(exc, 1));
|
||||
if (!expression)
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue