[Python-checkins] CVS: python/dist/src/Tools/compiler/compiler pycodegen.py,1.43,1.44

Jeremy Hylton jhylton@users.sourceforge.net
2001年8月28日 10:28:41 -0700


Update of /cvsroot/python/python/dist/src/Tools/compiler/compiler
In directory usw-pr-cvs1:/tmp/cvs-serv32059
Modified Files:
	pycodegen.py 
Log Message:
Make sure the JUMP_ABSOLUTE and POP_BLOCK at the end of a for loop are
contiguous.
Index: pycodegen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/compiler/pycodegen.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** pycodegen.py	2001年08月28日 16:35:18	1.43
--- pycodegen.py	2001年08月28日 17:28:33	1.44
***************
*** 364,368 ****
 self.visit(node.body)
 self.emit('JUMP_ABSOLUTE', start)
! self.startBlock(anchor)
 self.emit('POP_BLOCK')
 self.loops.pop()
--- 364,368 ----
 self.visit(node.body)
 self.emit('JUMP_ABSOLUTE', start)
! self.nextBlock(anchor)
 self.emit('POP_BLOCK')
 self.loops.pop()

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