summaryrefslogtreecommitdiffstats
path: root/Lib/compiler/pyassem.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-03 20:29:11 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-03 20:29:11 (GMT)
commit10be2ea85d081bc5b2b0529b76d104d749707394 (patch)
tree604dc31140bcabb8edafef4e3f3218797eed0c9e /Lib/compiler/pyassem.py
parentd4e30357016f0b2e2a5093d810b7edea33501cd3 (diff)
downloadcpython-10be2ea85d081bc5b2b0529b76d104d749707394.zip
cpython-10be2ea85d081bc5b2b0529b76d104d749707394.tar.gz
cpython-10be2ea85d081bc5b2b0529b76d104d749707394.tar.bz2
SF bug 1442442: LIST_APPEND optimization got lost in the AST merge.
Add it back.
Diffstat (limited to 'Lib/compiler/pyassem.py')
-rw-r--r--Lib/compiler/pyassem.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/compiler/pyassem.py b/Lib/compiler/pyassem.py
index 5932ffe..b59661f 100644
--- a/Lib/compiler/pyassem.py
+++ b/Lib/compiler/pyassem.py
@@ -744,6 +744,7 @@ class StackDepthTracker:
effect = {
'POP_TOP': -1,
'DUP_TOP': 1,
+ 'LIST_APPEND': -2,
'SLICE+1': -1,
'SLICE+2': -1,
'SLICE+3': -2,