diff Python/compile.c @ 13945:afdb3f485d8f legacy-trunk

The list comprehensions patch partly reversed the removal of UNPACK_LIST, re-introducing com_assign_list, now unused. Removed it.
author Thomas Wouters <thomas@python.org>
date Sat, 12 Aug 2000 22:03:16 +0000
parents 25fd9846bd54
children 8e8a8df0fe73
line wrap: on
line diff
--- a/Python/compile.c	Sat Aug 12 21:37:39 2000 +0000
+++ b/Python/compile.c	Sat Aug 12 22:03:16 2000 +0000
@@ -1846,19 +1846,6 @@
 }
 
 static void
-com_assign_list(struct compiling *c, node *n, int assigning)
-{
-	int i;
-	if (assigning) {
-		i = (NCH(n)+1)/2;
-		com_addoparg(c, UNPACK_SEQUENCE, i);
-		com_push(c, i-1);
-	}
-	for (i = 0; i < NCH(n); i += 2)
-		com_assign(c, CHILD(n, i), assigning);
-}
-
-static void
 com_assign_name(struct compiling *c, node *n, int assigning)
 {
 	REQ(n, NAME);