diff Python/compile.c @ 29237:068529a90992 legacy-trunk

SF bug #644345, Poor error message for augmented assign Update error message. Hopefully this is clearer to some people.
author Neal Norwitz <nnorwitz@gmail.com>
date Thu, 22 May 2003 22:00:04 +0000
parents 858d568ebf76
children 958b40d80b33
line wrap: on
line diff
--- a/Python/compile.c	Thu May 22 17:32:40 2003 +0000
+++ b/Python/compile.c	Thu May 22 22:00:04 2003 +0000
@@ -2778,7 +2778,7 @@
 				}
 				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 @@
 				}
 				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