diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-19 06:43:50 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-19 06:43:50 +0000 |
commit | 5ef922447c3dd0f9b306b4fde59481b4d4eaeaa3 (patch) | |
tree | 639fe9618a71538e4dfcabc48f8145745e90f9dc /Python/ast.c | |
parent | 02104df4c8fbb1db098646d33453706d2535b51a (diff) | |
download | cpython-git-5ef922447c3dd0f9b306b4fde59481b4d4eaeaa3.tar.gz |
Fix #1474677, non-keyword argument following keyword.
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c index fafa25310b..9664590055 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -1750,6 +1750,11 @@ ast_for_call(struct compiling *c, const node *n, expr_ty func) if (TYPE(ch) == argument) { expr_ty e; if (NCH(ch) == 1) { + if (nkeywords) { + ast_error(CHILD(ch, 0), + "non-keyword arg after keyword arg"); + return NULL; + } e = ast_for_expr(c, CHILD(ch, 0)); if (!e) return NULL; |