From: Neal Norwitz Date: Thu, 22 May 2003 22:00:04 +0000 (+0000) Subject: SF bug #644345, Poor error message for augmented assign X-Git-Tag: v2.3c1~636 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1d654e13a1c8f658a1f0a04dafec8005e241a99;p=thirdparty%2FPython%2Fcpython.git SF bug #644345, Poor error message for augmented assign Update error message. Hopefully this is clearer to some people. --- diff --git a/Python/compile.c b/Python/compile.c index 7e8631d3314c..1d01a261e622 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