diff Python/compile.c @ 14178:dff22d4a48da legacy-trunk

Fix allowable node-types for assignment, need to add 'listmaker'. (This fix is a bit broken, just as the test already was: the test for testlist and listmaker are done always, whereas the test for exprlist and the actual abort() are only done if Py_DEBUG is defined. Suggestions welcome, I guess ;)
author Thomas Wouters <thomas@python.org>
date Fri, 25 Aug 2000 05:41:11 +0000
parents 1b9fd0cbd914
children 11a26e963dc9
line wrap: on
line diff
--- a/Python/compile.c	Fri Aug 25 05:13:42 2000 +0000
+++ b/Python/compile.c	Fri Aug 25 05:41:11 2000 +0000
@@ -1959,7 +1959,7 @@
 com_assign_sequence(struct compiling *c, node *n, int assigning)
 {
 	int i;
-	if (TYPE(n) != testlist)
+	if (TYPE(n) != testlist && TYPE(n) != listmaker)
 		REQ(n, exprlist);
 	if (assigning) {
 		i = (NCH(n)+1)/2;