mirror of
https://github.com/python/cpython.git
synced 2025-11-03 15:11:34 +00:00
The list comprehensions patch partly reversed the removal of UNPACK_LIST,
re-introducing com_assign_list, now unused. Removed it.
This commit is contained in:
parent
a248fb605f
commit
361852f80e
1 changed files with 0 additions and 13 deletions
|
|
@ -1845,19 +1845,6 @@ com_assign_sequence(struct compiling *c, node *n, int assigning)
|
||||||
com_assign(c, CHILD(n, i), 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
|
static void
|
||||||
com_assign_name(struct compiling *c, node *n, int assigning)
|
com_assign_name(struct compiling *c, node *n, int assigning)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue