diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast.c | 5 | ||||
-rw-r--r-- | Python/graminit.c | 5 |
2 files changed, 8 insertions, 2 deletions
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 @@ 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; diff --git a/Python/graminit.c b/Python/graminit.c index 14a41d1..e65a992 100644 --- a/Python/graminit.c +++ b/Python/graminit.c @@ -1609,7 +1609,8 @@ static arc arcs_74_5[2] = { static arc arcs_74_6[1] = { {0, 6}, }; -static arc arcs_74_7[1] = { +static arc arcs_74_7[2] = { + {162, 5}, {31, 3}, }; static state states_74[8] = { @@ -1620,7 +1621,7 @@ static state states_74[8] = { {4, arcs_74_4}, {2, arcs_74_5}, {1, arcs_74_6}, - {1, arcs_74_7}, + {2, arcs_74_7}, }; static arc arcs_75_0[1] = { {28, 1}, |