summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-12 22:03:16 +0000
committerThomas Wouters <thomas@python.org>2000-08-12 22:03:16 +0000
commite4c1c76c07db2ab38fa1cb13796e764410bb47a9 (patch)
tree45efba323c759a2168a8042cdf878f895e4ed73e /Python
parent9dafceb56b3ae157e86043076c10eb97e7be6e5a (diff)
downloadcpython-e4c1c76c07db2ab38fa1cb13796e764410bb47a9.tar.gz
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 6e4c548dc5..adefb4fbba 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);