]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42246: Make sure that `f_lasti`, and thus `f_lineno`, is set correctly after...
authorMark Shannon <mark@hotpy.org>
Thu, 17 Dec 2020 13:55:28 +0000 (13:55 +0000)
committerGitHub <noreply@github.com>
Thu, 17 Dec 2020 13:55:28 +0000 (13:55 +0000)
commitbf353f3c2d937772a8cf30b15fd8eb7b82665ccb
tree9196732769c1cca2bd01a44e668fe4c5fb29f7d7
parent40125ab3252453bf205ed906e46bf9741c27bf9d
bpo-42246: Make sure that `f_lasti`, and thus `f_lineno`, is set correctly after raising or reraising an exception (GH-23803)

* Ensure that f_lasti is set correctly after an exception is raised to conform to PEP 626.

* Update importlib

* Add NEWS.
13 files changed:
Doc/library/dis.rst
Include/opcode.h
Lib/importlib/_bootstrap_external.py
Lib/opcode.py
Lib/test/test_dis.py
Lib/test/test_exceptions.py
Misc/NEWS.d/next/Core and Builtins/2020-12-16-14-44-21.bpo-42246.RtIEY7.rst [new file with mode: 0644]
Python/ceval.c
Python/compile.c
Python/importlib.h
Python/importlib_external.h
Python/importlib_zipimport.h
Python/opcode_targets.h