summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-04-30 13:32:47 (GMT)
committerGitHub <noreply@github.com>2021-04-30 13:32:47 (GMT)
commit5979e81a212949c62c2490167c9137d233d7de64 (patch)
treef59b6fd4cb8420052b3783ddf460c2932b529c67 /Misc
parent64141382ecbad665d5738ff26d15505f3427c724 (diff)
downloadcpython-5979e81a212949c62c2490167c9137d233d7de64.zip
cpython-5979e81a212949c62c2490167c9137d233d7de64.tar.gz
cpython-5979e81a212949c62c2490167c9137d233d7de64.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2021-04-29-13-49-57.bpo-43933.TueFdQ.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-04-29-13-49-57.bpo-43933.TueFdQ.rst b/Misc/NEWS.d/next/Core and Builtins/2021-04-29-13-49-57.bpo-43933.TueFdQ.rst
new file mode 100644
index 0000000..d442f30
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2021-04-29-13-49-57.bpo-43933.TueFdQ.rst
@@ -0,0 +1,2 @@
+Set frame.f_lineno to the line number of the 'with' kweyword when executing
+the call to ``__exit__``.