diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-08-19 19:52:46 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-08-19 19:52:46 +0000 |
commit | 80f0ed5bb1b38a615d92bdf2b3b3dad854dd06d9 (patch) | |
tree | 3c75d17c436a3d9f6b8c9f8fa58b4ec6fa2badbe /Python/ast.c | |
parent | d9ccf8c547f3163946462fd382991b27d4d1a4ee (diff) | |
download | cpython-git-80f0ed5bb1b38a615d92bdf2b3b3dad854dd06d9.tar.gz |
allow keyword args to be passed in after *args #3473
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 b6a5e0f546..8414c74480 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; |