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;