summaryrefslogtreecommitdiff
path: root/Lib/compiler
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-11-09 16:24:34 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2001-11-09 16:24:34 +0000
commit666b86dea98fc533b8c6532899f75705ff6abe03 (patch)
treed0ff27cfef3b4e6a66f95235f6dd4d38a5b23cae /Lib/compiler
parent995710f17556c67478a593508306b26b58d19297 (diff)
downloadcpython-666b86dea98fc533b8c6532899f75705ff6abe03.tar.gz
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/compiler')
-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 88767a4847..83e64336d9 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