From f60bb689b09b12e129945b5bc3e12152fede9a7d Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 19 Aug 2008 20:57:10 +0000 Subject: allow keyword args after *args in a function call --- Python/ast.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index 46bfd4e803..6d2fa09b17 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -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; -- cgit v1.2.1