function,PyType_GetFlags,3.2,,
function,PyType_GetFullyQualifiedName,3.13,,
function,PyType_GetModule,3.10,,
+function,PyType_GetModuleByDef,3.13,,
function,PyType_GetModuleName,3.13,,
function,PyType_GetModuleState,3.10,,
function,PyType_GetName,3.11,,
:term:`strong reference` to the constant zero.
(Contributed by Victor Stinner in :gh:`115754`.)
+* Add :c:func:`PyType_GetModuleByDef` to the limited C API
+ (Contributed by Victor Stinner in :gh:`116936`.)
+
Porting to Python 3.13
----------------------
PyAPI_FUNC(const char *) _PyType_Name(PyTypeObject *);
PyAPI_FUNC(PyObject *) _PyType_Lookup(PyTypeObject *, PyObject *);
-PyAPI_FUNC(PyObject *) PyType_GetModuleByDef(PyTypeObject *, PyModuleDef *);
PyAPI_FUNC(PyObject *) PyType_GetDict(PyTypeObject *);
PyAPI_FUNC(int) PyObject_Print(PyObject *, FILE *, int);
# define PyType_CheckExact(op) PyType_CheckExact(_PyObject_CAST(op))
#endif
+#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030d0000
+PyAPI_FUNC(PyObject *) PyType_GetModuleByDef(PyTypeObject *, PyModuleDef *);
+#endif
+
#ifdef __cplusplus
}
#endif
"PyType_GetFlags",
"PyType_GetFullyQualifiedName",
"PyType_GetModule",
+ "PyType_GetModuleByDef",
"PyType_GetModuleName",
"PyType_GetModuleState",
"PyType_GetName",
--- /dev/null
+Add :c:func:`PyType_GetModuleByDef` to the limited C API. Patch by Victor
+Stinner.
added = '3.13'
[function.Py_GetConstantBorrowed]
added = '3.13'
+[function.PyType_GetModuleByDef]
+ added = '3.13'
EXPORT_FUNC(PyType_GetFlags)
EXPORT_FUNC(PyType_GetFullyQualifiedName)
EXPORT_FUNC(PyType_GetModule)
+EXPORT_FUNC(PyType_GetModuleByDef)
EXPORT_FUNC(PyType_GetModuleName)
EXPORT_FUNC(PyType_GetModuleState)
EXPORT_FUNC(PyType_GetName)