]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43933: Set frame.f_lineno during call to __exit__ (GH-25719)
authorMark Shannon <mark@hotpy.org>
Fri, 30 Apr 2021 13:32:47 +0000 (14:32 +0100)
committerGitHub <noreply@github.com>
Fri, 30 Apr 2021 13:32:47 +0000 (14:32 +0100)
commit5979e81a212949c62c2490167c9137d233d7de64
treef59b6fd4cb8420052b3783ddf460c2932b529c67
parent64141382ecbad665d5738ff26d15505f3427c724
bpo-43933:  Set frame.f_lineno during call to __exit__ (GH-25719)

* Set line number of __exit__ call in a with statement to be that of the with keyword.
Lib/test/test_dis.py
Lib/test/test_sys_settrace.py
Misc/NEWS.d/next/Core and Builtins/2021-04-29-13-49-57.bpo-43933.TueFdQ.rst [new file with mode: 0644]
Python/compile.c
Python/importlib.h
Python/importlib_external.h
Python/importlib_zipimport.h