From 6e321df1f42fcf789afa6d1f3b30dfc8fb4e3aab Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 28 May 2020 16:33:45 +0200 Subject: [PATCH 1/2] bpo-37878: PyThreadState_DeleteCurrent() was not removed Update What's New in Python 3.9. --- Doc/whatsnew/3.9.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index 35496d7b8f5ef3..1994abc52ba148 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -829,9 +829,6 @@ Removed removed, standard :class:`bytes` objects are always used instead. (Contributed by Jon Janzen in :issue:`36409`.) -* The C function ``PyThreadState_DeleteCurrent()`` has been removed. It was not documented. - (Contributed by Joannah Nanjekye in :issue:`37878`.) - * The C function ``PyGen_NeedsFinalizing`` has been removed. It was not documented, tested, or used anywhere within CPython after the implementation of :pep:`442`. Patch by Joannah Nanjekye. From e96c35252e1a305e42e8773602a6340dc7435495 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 28 May 2020 17:17:36 +0200 Subject: [PATCH 2/2] PyThreadState_DeleteCurrent was excluded from the limited C API --- Doc/whatsnew/3.9.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index 1994abc52ba148..a42ec09c6532fd 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -1105,6 +1105,8 @@ Removed * Exclude the following functions from the limited C API: + * ``PyThreadState_DeleteCurrent()`` + (Contributed by Joannah Nanjekye in :issue:`37878`.) * ``_Py_CheckRecursionLimit`` * ``_Py_NewReference()`` * ``_Py_ForgetReference()``