mirror of
https://github.com/python/cpython.git
synced 2025-10-07 15:42:02 +00:00
bpo-45292: [PEP-654] add except* (GH-29581)
This commit is contained in:
parent
850aefc2c6
commit
d60457a667
34 changed files with 7070 additions and 3332 deletions
|
@ -972,6 +972,12 @@ astfold_stmt(stmt_ty node_, PyArena *ctx_, _PyASTOptimizeState *state)
|
|||
CALL_SEQ(astfold_stmt, stmt, node_->v.Try.orelse);
|
||||
CALL_SEQ(astfold_stmt, stmt, node_->v.Try.finalbody);
|
||||
break;
|
||||
case TryStar_kind:
|
||||
CALL_SEQ(astfold_stmt, stmt, node_->v.TryStar.body);
|
||||
CALL_SEQ(astfold_excepthandler, excepthandler, node_->v.TryStar.handlers);
|
||||
CALL_SEQ(astfold_stmt, stmt, node_->v.TryStar.orelse);
|
||||
CALL_SEQ(astfold_stmt, stmt, node_->v.TryStar.finalbody);
|
||||
break;
|
||||
case Assert_kind:
|
||||
CALL(astfold_expr, expr_ty, node_->v.Assert.test);
|
||||
CALL_OPT(astfold_expr, expr_ty, node_->v.Assert.msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue