diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-05-22 22:00:04 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-05-22 22:00:04 (GMT) |
commit | a1d654e13a1c8f658a1f0a04dafec8005e241a99 (patch) | |
tree | 29442f0e160dbb5067b564b38e8b30326f339856 | |
parent | 8891021229abb3bc4a9732c8cfa1993dccde8674 (diff) | |
download | cpython-a1d654e13a1c8f658a1f0a04dafec8005e241a99.zip cpython-a1d654e13a1c8f658a1f0a04dafec8005e241a99.tar.gz cpython-a1d654e13a1c8f658a1f0a04dafec8005e241a99.tar.bz2 |
SF bug #644345, Poor error message for augmented assign
Update error message. Hopefully this is clearer to some people.
-rw-r--r-- | Python/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index 7e8631d..1d01a26 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2778,7 +2778,7 @@ com_assign(struct compiling *c, node *n, int assigning, node *augn) } if (assigning > OP_APPLY) { com_error(c, PyExc_SyntaxError, - "augmented assign to tuple not possible"); + "augmented assign to tuple literal not possible"); return; } break; @@ -2791,7 +2791,7 @@ com_assign(struct compiling *c, node *n, int assigning, node *augn) } if (assigning > OP_APPLY) { com_error(c, PyExc_SyntaxError, - "augmented assign to list not possible"); + "augmented assign to list literal not possible"); return; } if (NCH(n) > 1 |