commit | 2d735bc09876e8216bf6708bb598923e07a2ac4b | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Aug 19 20:57:10 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Aug 19 20:57:10 2008 +0000 |
tree | b242296c96c8988ba3c783474c960432d13bef67 | |
parent | de0de885f77d40ddb7e9f2afc8be5a99b9cf01ec [diff] [blame] |
allow keyword args after *args in a function call
diff --git a/Python/ast.c b/Python/ast.c index 46bfd4e..6d2fa09 100644 --- a/Python/ast.c +++ b/Python/ast.c
@@ -1961,6 +1961,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;