[Python-checkins] CVS: python/dist/src/Tools/compiler/compiler pycodegen.py,1.43,1.44
Jeremy Hylton
jhylton@users.sourceforge.net
Tue, 28 Aug 2001 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()