commit | 80f0ed5bb1b38a615d92bdf2b3b3dad854dd06d9 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Aug 19 19:52:46 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Aug 19 19:52:46 2008 +0000 |
tree | 3c75d17c436a3d9f6b8c9f8fa58b4ec6fa2badbe | |
parent | d9ccf8c547f3163946462fd382991b27d4d1a4ee [diff] [blame] |
allow keyword args to be passed in after *args #3473
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 @@ "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;