Antoine Pitrou added the comment:
For example we could generate the following bytecode:
SETUP_FINALLY L1
// ... stmt1
POP_BLOCK
JUMP_FINALLY L1
L1:
// ... stmt2
RERAISE
JUMP_FORWARD L2
L2:
JUMP_FINALLY would push 3 Nones on the stack. RERAISE would raise only if
non-None values are popped.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17611>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com