summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorPeter Bierma <zintensitydev@gmail.com>2024-11-20 17:27:19 (GMT)
committerGitHub <noreply@github.com>2024-11-20 17:27:19 (GMT)
commit6c1a4fb6d400827155fd70e48d682e35397731a1 (patch)
tree235d6b3e85d268e1ef49b8fcec7b6fd533d4aa7a /Misc
parentaea0c586d181abb897511b6b46d28bfbe4858f79 (diff)
downloadcpython-6c1a4fb6d400827155fd70e48d682e35397731a1.zip
cpython-6c1a4fb6d400827155fd70e48d682e35397731a1.tar.gz
cpython-6c1a4fb6d400827155fd70e48d682e35397731a1.tar.bz2
gh-121058: Warn if `PyThreadState_Clear` is called with an exception set (gh-121343)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2024-07-03-13-39-13.gh-issue-121058.MKi1MV.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2024-07-03-13-39-13.gh-issue-121058.MKi1MV.rst b/Misc/NEWS.d/next/C API/2024-07-03-13-39-13.gh-issue-121058.MKi1MV.rst
new file mode 100644
index 0000000..133d8cb
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2024-07-03-13-39-13.gh-issue-121058.MKi1MV.rst
@@ -0,0 +1,2 @@
+``PyThreadState_Clear()`` now warns (and calls ``sys.excepthook``) if the
+thread state still has an active exception.