allow keyword args to be passed in after *args #3473

This commit is contained in:
Benjamin Peterson 2008-08-19 19:52:46 +00:00
parent d9ccf8c547
commit 80f0ed5bb1
5 changed files with 29 additions and 12 deletions

View file

@ -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;