diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-09 16:24:34 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-09 16:24:34 (GMT) |
commit | 6383c2d1a677f168ed2a4dfc9cb28f93ec327a0e (patch) | |
tree | aa993a3c8fc83851349ef7c44c44e5d91a129634 /Lib | |
parent | 41c8321252a84d8a9d0ded374e7db7a4393036be (diff) | |
download | cpython-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.py | 1 |
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 |