diff options
author | Anthony Sottile <asottile@umich.edu> | 2020-01-05 17:03:56 (GMT) |
---|---|---|
committer | Pablo Galindo <Pablogsal@gmail.com> | 2020-01-05 17:03:56 (GMT) |
commit | b121a4a45ff4bab8812a9b26ceffe5ad642f5d5a (patch) | |
tree | bb93879df6053614cb012368a1879d5cd96b4e72 /Python/ast_opt.c | |
parent | 5ea7bb25e3b192d6c49a49c9e3b316f8559602aa (diff) | |
download | cpython-b121a4a45ff4bab8812a9b26ceffe5ad642f5d5a.zip cpython-b121a4a45ff4bab8812a9b26ceffe5ad642f5d5a.tar.gz cpython-b121a4a45ff4bab8812a9b26ceffe5ad642f5d5a.tar.bz2 |
Fix constant folding optimization for positional only arguments (GH-17837)
Diffstat (limited to 'Python/ast_opt.c')
-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); |