From 9bca3ef575a088d3330a2743e36423aa5f7bdad8 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Wed, 20 Nov 2024 03:44:45 -0500 Subject: [PATCH] Doc: C API: `PyThreadState::on_delete` was removed in v3.13 (#126536) --- Doc/c-api/init.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 6e881590131..24d876d1f35 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -1379,6 +1379,9 @@ All of the following functions must be called after :c:func:`Py_Initialize`. This function now calls the :c:member:`PyThreadState.on_delete` callback. Previously, that happened in :c:func:`PyThreadState_Delete`. + .. versionchanged:: 3.13 + The :c:member:`PyThreadState.on_delete` callback was removed. + .. c:function:: void PyThreadState_Delete(PyThreadState *tstate)