for _, l in bp._bytes_lines():
+ def _block_stack_repr(self, block_stack):
+ """Get a string version of `block_stack`, for debugging."""
+ ["(%s, %r)" % (opcode.opname[b], b) for b in block_stack]
+ return "[" + blocks + "]"
"""Split the code object into a list of `Chunk` objects.
# A break that goes through a finally will jump to whatever
# block is on top of the stack.
+ # print self._block_stack_repr(block_stack)
# For the finally clause we need to find the closest exception
# block, and use its jump target as an exit.