]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42908: Mark cleanup code at end of try-except and with artificial (#24202)
authorMark Shannon <mark@hotpy.org>
Wed, 13 Jan 2021 12:05:43 +0000 (12:05 +0000)
committerGitHub <noreply@github.com>
Wed, 13 Jan 2021 12:05:43 +0000 (12:05 +0000)
commit3bd6035b6baf1a7d51b7cc2c6bb2c81886236b67
tree22746e3a5738e389725765ade3167911eba51b9a
parent2396614b8958ad202378fd71a598eb4106ac5896
bpo-42908: Mark cleanup code at end of try-except and with artificial (#24202)

* Mark bytecodes at end of try-except as artificial.

* Make sure that the CFG is consistent throughout optimiization.

* Extend line-number propagation logic so that implicit returns after 'try-except' or 'with' have the correct line numbers.

* Update importlib
Lib/test/test_dis.py
Lib/test/test_sys_settrace.py
Python/compile.c
Python/importlib.h
Python/importlib_external.h
Python/importlib_zipimport.h