From e400fa2719d8f9ff99c5ff16e785452ead0b46d8 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Mon, 19 Jan 2026 13:22:16 +0300 Subject: [PATCH] gh-75459: versionadded for PyObject_CallFinalizer*() API (GH-143982) (cherry picked from commit d8ab1c79b0e3f1406263c084c7d09a78cc128187) Co-authored-by: Sergey B Kirpichev --- Doc/c-api/lifecycle.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/c-api/lifecycle.rst b/Doc/c-api/lifecycle.rst index 5a170862a26f44..531c4080a0131c 100644 --- a/Doc/c-api/lifecycle.rst +++ b/Doc/c-api/lifecycle.rst @@ -256,6 +256,8 @@ To allocate and free memory, see :ref:`allocating-objects`. collection (i.e., the :c:macro:`Py_TPFLAGS_HAVE_GC` flag is set); this may change in the future. + .. versionadded:: 3.4 + .. c:function:: int PyObject_CallFinalizerFromDealloc(PyObject *op) @@ -266,6 +268,8 @@ To allocate and free memory, see :ref:`allocating-objects`. should happen. Otherwise, this function returns 0 and destruction can continue normally. + .. versionadded:: 3.4 + .. seealso:: :c:member:`~PyTypeObject.tp_dealloc` for example code.