diff options
Diffstat (limited to 'py')
-rw-r--r-- | py/compile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/compile.c b/py/compile.c index 3b6a264d61..86ec4d3a3c 100644 --- a/py/compile.c +++ b/py/compile.c @@ -2308,6 +2308,10 @@ STATIC void compile_trailer_paren_helper(compiler_t *comp, mp_parse_node_t pn_ar } } else { normal_argument: + if (star_flags) { + compile_syntax_error(comp, args[i], "non-keyword arg after */**"); + return; + } if (n_keyword > 0) { compile_syntax_error(comp, args[i], "non-keyword arg after keyword arg"); return; |