func,PyObject_AsFileDescriptor,3.2,,
func,PyObject_Bytes,3.2,,
func,PyObject_Call,3.2,,
+func,PyObject_CallFinalizerFromDealloc,3.15,,
func,PyObject_CallFunction,3.2,,
func,PyObject_CallFunctionObjArgs,3.2,,
func,PyObject_CallMethod,3.2,,
(Contributed by Victor Stinner in :gh:`141510`.)
+* Add :c:func:`PyObject_CallFinalizerFromDealloc` function to the limited C
+ API.
+ (Contributed by Victor Stinner in :gh:`146063`.)
+
* Add :c:func:`PySys_GetAttr`, :c:func:`PySys_GetAttrString`,
:c:func:`PySys_GetOptionalAttr`, and :c:func:`PySys_GetOptionalAttrString`
functions as replacements for :c:func:`PySys_GetObject`.
PyAPI_FUNC(PyObject **) _PyObject_GetDictPtr(PyObject *);
PyAPI_FUNC(void) PyObject_CallFinalizer(PyObject *);
-PyAPI_FUNC(int) PyObject_CallFinalizerFromDealloc(PyObject *);
PyAPI_FUNC(void) PyUnstable_Object_ClearWeakRefsNoCallbacks(PyObject *);
#endif
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= _Py_PACK_VERSION(3, 15)
+PyAPI_FUNC(int) PyObject_CallFinalizerFromDealloc(PyObject *);
PyAPI_FUNC(PyObject *) PyType_GetModuleByToken(PyTypeObject *type,
const void *token);
PyAPI_FUNC(void *) PyObject_GetTypeData_DuringGC(PyObject *obj,
"PyObject_AsWriteBuffer",
"PyObject_Bytes",
"PyObject_Call",
+ "PyObject_CallFinalizerFromDealloc",
"PyObject_CallFunction",
"PyObject_CallFunctionObjArgs",
"PyObject_CallMethod",
--- /dev/null
+Add :c:func:`PyObject_CallFinalizerFromDealloc` function to the limited C API.
+Patch by Victor Stinner.
added = '3.15'
# PEP 757 import/export API.
-
[function.PyLong_GetNativeLayout]
added = '3.15'
[function.PyLong_Export]
# Note: The `_reserved` member of this struct is for interal use only.
# (The definition of 'full-abi' was clarified when this entry was added.)
struct_abi_kind = 'full-abi'
+
+[function.PyObject_CallFinalizerFromDealloc]
+ added = '3.15'
EXPORT_FUNC(PyObject_AsWriteBuffer)
EXPORT_FUNC(PyObject_Bytes)
EXPORT_FUNC(PyObject_Call)
+EXPORT_FUNC(PyObject_CallFinalizerFromDealloc)
EXPORT_FUNC(PyObject_CallFunction)
EXPORT_FUNC(PyObject_CallFunctionObjArgs)
EXPORT_FUNC(PyObject_CallMethod)