diff options
Diffstat (limited to 'Python/ast.c')
| -rw-r--r-- | Python/ast.c | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c index b6a5e0f..8414c74 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -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;  | 
