]> granicus.if.org Git - python/commitdiff
SF bug #644345, Poor error message for augmented assign
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 22 May 2003 22:00:04 +0000 (22:00 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 22 May 2003 22:00:04 +0000 (22:00 +0000)
Update error message.  Hopefully this is clearer to some people.

Python/compile.c

index 7e8631d3314c56edde1d4cbba95b09a9bf8b6be6..1d01a261e62246c671df88e7800e20883523a9e3 100644 (file)
@@ -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