[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.
Antoine Pitrou
report at bugs.python.org
Mon Jul 24 04:25:51 EDT 2017
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 <report at bugs.python.org>
<http://bugs.python.org/issue17611>
_______________________________________
More information about the Python-bugs-list
mailing list