summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-11-09 16:24:34 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-11-09 16:24:34 (GMT)
commit6383c2d1a677f168ed2a4dfc9cb28f93ec327a0e (patch)
treeaa993a3c8fc83851349ef7c44c44e5d91a129634 /Lib
parent41c8321252a84d8a9d0ded374e7db7a4393036be (diff)
downloadcpython-6383c2d1a677f168ed2a4dfc9cb28f93ec327a0e.zip
cpython-6383c2d1a677f168ed2a4dfc9cb28f93ec327a0e.tar.gz
cpython-6383c2d1a677f168ed2a4dfc9cb28f93ec327a0e.tar.bz2
Fix SF bug #479186: compiler generates bad code for "del"
Fix by Neil Schemenauer. Visit the Subscript node when trying to find the operation for a statement. XXX Not sure if there are other nodes that should be visited.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/compiler/pycodegen.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py
index 88767a4..83e6433 100644
--- a/Lib/compiler/pycodegen.py
+++ b/Lib/compiler/pycodegen.py
@@ -1333,6 +1333,7 @@ class OpFinder:
elif self.op != node.flags:
raise ValueError, "mixed ops in stmt"
visitAssAttr = visitAssName
+ visitSubscript = visitAssName
class Delegator:
"""Base class to support delegation for augmented assignment nodes