summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2023-08-30 23:50:50 (GMT)
committerGitHub <noreply@github.com>2023-08-30 23:50:50 (GMT)
commitd52c4482a82f3f98f1a78efa948144a1fe3c52b2 (patch)
tree0f3c2da0953b9d97617abba922165a1fcad99735 /Misc
parentf59c66e8c8a6715c585cf2cdf1f99715480b4da1 (diff)
downloadcpython-d52c4482a82f3f98f1a78efa948144a1fe3c52b2.zip
cpython-d52c4482a82f3f98f1a78efa948144a1fe3c52b2.tar.gz
cpython-d52c4482a82f3f98f1a78efa948144a1fe3c52b2.tar.bz2
gh-108654: restore comprehension locals before handling exception (#108659)
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-08-29-17-53-12.gh-issue-108654.jbkDVo.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-08-29-17-53-12.gh-issue-108654.jbkDVo.rst b/Misc/NEWS.d/next/Core and Builtins/2023-08-29-17-53-12.gh-issue-108654.jbkDVo.rst
new file mode 100644
index 0000000..032e033
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-08-29-17-53-12.gh-issue-108654.jbkDVo.rst
@@ -0,0 +1,2 @@
+Restore locals shadowed by an inlined comprehension if the comprehension
+raises an exception.