diff options
author | Peter Bierma <zintensitydev@gmail.com> | 2024-11-20 17:27:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-20 17:27:19 (GMT) |
commit | 6c1a4fb6d400827155fd70e48d682e35397731a1 (patch) | |
tree | 235d6b3e85d268e1ef49b8fcec7b6fd533d4aa7a /Misc | |
parent | aea0c586d181abb897511b6b46d28bfbe4858f79 (diff) | |
download | cpython-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.rst | 2 |
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. |