diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-01-05 17:21:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-05 17:21:47 (GMT) |
commit | 49c108c8324c14e41ddf2a909dcab687f3d34b14 (patch) | |
tree | f646c7c33a8c0d53f133782df8210bc7bab9154f /Python | |
parent | 636a850ed81cf9b8feed523f277b1538bfc5230b (diff) | |
download | cpython-49c108c8324c14e41ddf2a909dcab687f3d34b14.zip cpython-49c108c8324c14e41ddf2a909dcab687f3d34b14.tar.gz cpython-49c108c8324c14e41ddf2a909dcab687f3d34b14.tar.bz2 |
Fix constant folding optimization for positional only arguments (GH-17837)
(cherry picked from commit b121a4a45ff4bab8812a9b26ceffe5ad642f5d5a)
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast_opt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ast_opt.c b/Python/ast_opt.c index 96c766f..f2a2c25 100644 --- a/Python/ast_opt.c +++ b/Python/ast_opt.c @@ -617,6 +617,7 @@ astfold_comprehension(comprehension_ty node_, PyArena *ctx_, int optimize_) static int astfold_arguments(arguments_ty node_, PyArena *ctx_, int optimize_) { + CALL_SEQ(astfold_arg, arg_ty, node_->posonlyargs); CALL_SEQ(astfold_arg, arg_ty, node_->args); CALL_OPT(astfold_arg, arg_ty, node_->vararg); CALL_SEQ(astfold_arg, arg_ty, node_->kwonlyargs); |