commit | fee552669f21ca294f57fe0df826945edc779090 | [log] [tgz] |
---|---|---|
author | Mark Shannon <mark@hotpy.org> | Thu Nov 21 09:11:43 2019 +0000 |
committer | GitHub <noreply@github.com> | Thu Nov 21 09:11:43 2019 +0000 |
tree | 13b461df5a1231220b8f72c197d2731e9cb88d85 | |
parent | 5dcc06f6e0d7b5d6589085692b86c63e35e2325e [diff] |
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.