[Python-checkins] python/dist/src/Python compile.c,2.288,2.289
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Thu, 22 May 2003 15:00:07 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv19514/Python
Modified Files:
compile.c
Log Message:
SF bug #644345, Poor error message for augmented assign
Update error message. Hopefully this is clearer to some people.
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.288
retrieving revision 2.289
diff -C2 -d -r2.288 -r2.289
*** compile.c 22 May 2003 16:22:33 -0000 2.288
--- compile.c 22 May 2003 22:00:04 -0000 2.289
***************
*** 2779,2783 ****
if (assigning > OP_APPLY) {
com_error(c, PyExc_SyntaxError,
! "augmented assign to tuple not possible");
return;
}
--- 2779,2783 ----
if (assigning > OP_APPLY) {
com_error(c, PyExc_SyntaxError,
! "augmented assign to tuple literal not possible");
return;
}
***************
*** 2792,2796 ****
if (assigning > OP_APPLY) {
com_error(c, PyExc_SyntaxError,
! "augmented assign to list not possible");
return;
}
--- 2792,2796 ----
if (assigning > OP_APPLY) {
com_error(c, PyExc_SyntaxError,
! "augmented assign to list literal not possible");
return;
}