[Python-checkins] CVS: python/dist/src/Lib/compiler pycodegen.py,1.56,1.57

Jeremy Hylton jhylton@users.sourceforge.net
2001年11月09日 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:

AltStyle によって変換されたページ (->オリジナル) /