summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-12 22:03:16 (GMT)
committerThomas Wouters <thomas@python.org>2000-08-12 22:03:16 (GMT)
commit361852f80e2972f4450636d21ae88332adf1cfa6 (patch)
treeeb6567a418c4c563a25d16ea16dd2ebfdd80533b /Python
parenta248fb605f34d287533f873d79ff66494fcfd514 (diff)
downloadcpython-361852f80e2972f4450636d21ae88332adf1cfa6.zip
cpython-361852f80e2972f4450636d21ae88332adf1cfa6.tar.gz
cpython-361852f80e2972f4450636d21ae88332adf1cfa6.tar.bz2
The list comprehensions patch partly reversed the removal of UNPACK_LIST,
re-introducing com_assign_list, now unused. Removed it.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 6e4c548..adefb4f 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1846,19 +1846,6 @@ com_assign_sequence(struct compiling *c, node *n, int 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)
{
REQ(n, NAME);