allow keyword args after *args in a function call

This commit is contained in:
Benjamin Peterson 2008-08-19 20:57:10 +00:00
parent de0de885f7
commit 2d735bc098
6 changed files with 30 additions and 13 deletions

View file

@ -1961,6 +1961,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;