[Python-checkins] CVS: python/dist/src/Lib/compiler pycodegen.py,1.56,1.57
Jeremy Hylton
jhylton@users.sourceforge.net
Fri, 09 Nov 2001 08:24:37 -0800
Update of /cvsroot/python/python/dist/src/Lib/compiler
In directory usw-pr-cvs1:/tmp/cvs-serv15667
Modified Files:
pycodegen.py
Log Message:
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.
Index: pycodegen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/compiler/pycodegen.py,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** pycodegen.py 2001/10/18 21:57:37 1.56
--- pycodegen.py 2001/11/09 16:24:34 1.57
***************
*** 1334,1337 ****
--- 1334,1338 ----
raise ValueError, "mixed ops in stmt"
visitAssAttr = visitAssName
+ visitSubscript = visitAssName
class Delegator: