mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
allow keyword args to be passed in after *args #3473
This commit is contained in:
parent
d9ccf8c547
commit
80f0ed5bb1
5 changed files with 29 additions and 12 deletions
|
@ -1898,6 +1898,11 @@ ast_for_call(struct compiling *c, const node *n, expr_ty func)
|
|||
"non-keyword arg after keyword arg");
|
||||
return NULL;
|
||||
}
|
||||
if (vararg) {
|
||||
ast_error(CHILD(ch, 0),
|
||||
"only named arguments may follow *expression");
|
||||
return NULL;
|
||||
}
|
||||
e = ast_for_expr(c, CHILD(ch, 0));
|
||||
if (!e)
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue