python/dist/src/Python compile.c,2.329,2.330

Update of /cvsroot/python/python/dist/src/Python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3685 Modified Files: compile.c Log Message: Improve error message for augmented assignments to genexps or listcomps. Rather than introduce new logic, took the approach of making the message itself more general. Index: compile.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v retrieving revision 2.329 retrieving revision 2.330 diff -u -d -r2.329 -r2.330 --- compile.c 29 Sep 2004 21:47:10 -0000 2.329 +++ compile.c 29 Sep 2004 23:54:08 -0000 2.330 @@ -3274,7 +3274,7 @@ } if (assigning > OP_APPLY) { com_error(c, PyExc_SyntaxError, - "augmented assign to tuple literal not possible"); + "augmented assign to tuple literal or generator expression not possible"); return; } break; @@ -3287,7 +3287,7 @@ } if (assigning > OP_APPLY) { com_error(c, PyExc_SyntaxError, - "augmented assign to list literal not possible"); + "augmented assign to list literal or comprehension not possible"); return; } if (NCH(n) > 1
participants (1)
-
rhettingerīŧ users.sourceforge.net