mirror of
https://github.com/python/cpython.git
synced 2026-05-05 01:51:01 +00:00
gh-143055: Implementation of PEP 798 (#143056)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
96e4cd698a
commit
ccbe41e27c
14 changed files with 4069 additions and 2908 deletions
|
|
@ -557,7 +557,9 @@ astfold_expr(expr_ty node_, PyArena *ctx_, _PyASTPreprocessState *state)
|
|||
break;
|
||||
case DictComp_kind:
|
||||
CALL(astfold_expr, expr_ty, node_->v.DictComp.key);
|
||||
CALL(astfold_expr, expr_ty, node_->v.DictComp.value);
|
||||
if (node_->v.DictComp.value != NULL){
|
||||
CALL(astfold_expr, expr_ty, node_->v.DictComp.value);
|
||||
}
|
||||
CALL_SEQ(astfold_comprehension, comprehension, node_->v.DictComp.generators);
|
||||
break;
|
||||
case GeneratorExp_kind:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue