[Python-checkins] python/dist/src/Python compile.c,2.328,2.329

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Wed Sep 29 23:47:13 CEST 2004


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9236

Modified Files:
	compile.c 
Log Message:
Fix two erroneous error messages.

Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.328
retrieving revision 2.329
diff -u -d -r2.328 -r2.329
--- compile.c	28 Sep 2004 17:22:12 -0000	2.328
+++ compile.c	29 Sep 2004 21:47:10 -0000	2.329
@@ -3203,13 +3203,13 @@
 		case testlist_gexp:
 			if (NCH(n) > 1) {
 				if (TYPE(CHILD(n, 1)) == gen_for) {
-					com_error(c, PyExc_SystemError,
+					com_error(c, PyExc_SyntaxError,
 				  "assign to generator expression not possible");
 					return;
 				}
 				if (assigning > OP_APPLY) {
 					com_error(c, PyExc_SyntaxError,
-				  "augmented assign to tuple not possible");
+				  "augmented assign to generator expression not possible");
 					return;
 				}
 				com_assign_sequence(c, n, assigning);



More information about the Python-checkins mailing list