From: Thomas Wouters Date: Sat, 12 Aug 2000 22:03:16 +0000 (+0000) Subject: The list comprehensions patch partly reversed the removal of UNPACK_LIST, X-Git-Tag: v2.0b1~486 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=361852f80e2972f4450636d21ae88332adf1cfa6;p=python The list comprehensions patch partly reversed the removal of UNPACK_LIST, re-introducing com_assign_list, now unused. Removed it. --- diff --git a/Python/compile.c b/Python/compile.c index 6e4c548dc5..adefb4fbba 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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) {