From 361852f80e2972f4450636d21ae88332adf1cfa6 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Sat, 12 Aug 2000 22:03:16 +0000 Subject: [PATCH] The list comprehensions patch partly reversed the removal of UNPACK_LIST, re-introducing com_assign_list, now unused. Removed it. --- Python/compile.c | 13 ------------- 1 file changed, 13 deletions(-) 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) { -- 2.40.0