]> granicus.if.org Git - python/commitdiff
The list comprehensions patch partly reversed the removal of UNPACK_LIST,
authorThomas Wouters <thomas@python.org>
Sat, 12 Aug 2000 22:03:16 +0000 (22:03 +0000)
committerThomas Wouters <thomas@python.org>
Sat, 12 Aug 2000 22:03:16 +0000 (22:03 +0000)
re-introducing com_assign_list, now unused. Removed it.

Python/compile.c

index 6e4c548dc5cefb7e09588753dfc864e381ad5238..adefb4fbbabec07f8c943b9d54758d96d0177432 100644 (file)
@@ -1845,19 +1845,6 @@ com_assign_sequence(struct compiling *c, node *n, int assigning)
                com_assign(c, CHILD(n, i), assigning);
 }
 
-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)
 {