summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-06-21 09:55:15 (GMT)
committerGitHub <noreply@github.com>2021-06-21 09:55:15 (GMT)
commit82e5c28af7049c4f5343c808f172cbe2e145f49b (patch)
tree3f02d036472f7ee0ada4a283ba0748cd10c720d8 /Misc
parent5d2b3a0d688cf8a33db3d266c9e7049c13766a4c (diff)
downloadcpython-82e5c28af7049c4f5343c808f172cbe2e145f49b.zip
cpython-82e5c28af7049c4f5343c808f172cbe2e145f49b.tar.gz
cpython-82e5c28af7049c4f5343c808f172cbe2e145f49b.tar.bz2
bpo-44297: Fix missing line number in generator expressions (GH-26801)
* Make sure that line number is set when entering comprehension scope in compiler.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2021-06-19-12-41-13.bpo-44297.F53vHj.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-06-19-12-41-13.bpo-44297.F53vHj.rst b/Misc/NEWS.d/next/Core and Builtins/2021-06-19-12-41-13.bpo-44297.F53vHj.rst
new file mode 100644
index 0000000..bdcb5b2
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2021-06-19-12-41-13.bpo-44297.F53vHj.rst
@@ -0,0 +1,3 @@
+Make sure that the line number is set when entering a comprehension scope.
+Ensures that backtraces inclusing generator expressions show the correct
+line number.