[issue33387] Simplify bytecodes for try-finally, try-except and with blocks.
STINNER Victor
report at bugs.python.org
Thu Nov 21 05:06:22 EST 2019
STINNER Victor <vstinner at python.org> added the comment:
Mark merged his PR 6641 but forgot to mention bpo-33387:
commit fee552669f21ca294f57fe0df826945edc779090
Author: Mark Shannon <mark at hotpy.org>
Date: Thu Nov 21 09:11:43 2019 +0000
Produce cleaner bytecode for 'with' and 'async with' by generating separate code for normal and exceptional paths. (#6641)
Remove BEGIN_FINALLY, END_FINALLY, CALL_FINALLY and POP_FINALLY bytecodes. Implement finally blocks by code duplication.
Reimplement frame.lineno setter using line numbers rather than bytecode offsets.
----------
nosy: +vstinner
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33387>
_______________________________________
More information about the Python-bugs-list
mailing list