mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix constant folding optimization for positional only arguments (GH-17837)
This commit is contained in:
parent
5ea7bb25e3
commit
b121a4a45f
3 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue