]> granicus.if.org Git - python/commit
Track the block stack more reasonably in order to handle continue in
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 29 Aug 2001 22:30:09 +0000 (22:30 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 29 Aug 2001 22:30:09 +0000 (22:30 +0000)
commite4685ec57e74ec37f234907df45159bcd1899a25
tree389d0a03ecaddcb9132404911c3752f54d7a6645
parent9263848fa154ad2ba5288bf5adeda22d7c90f8a2
Track the block stack more reasonably in order to handle continue in
try/except or try/finally.

Previous versions had only track SETUP_LOOP blocks and ignored the
exception part.  This meant that it allowed continue inside a
try/except but generated buggy code.  Now it does the right thing.
Lib/compiler/pycodegen.py
Tools/compiler/compiler/pycodegen.py