Commit 361852f8 authored by Thomas Wouters's avatar Thomas Wouters

The list comprehensions patch partly reversed the removal of UNPACK_LIST,

re-introducing com_assign_list, now unused. Removed it.
parent a248fb60
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment