summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorneonene <53406459+neonene@users.noreply.github.com>2024-04-25 11:51:31 (GMT)
committerGitHub <noreply@github.com>2024-04-25 11:51:31 (GMT)
commit2c451489122d539080c8d674b391dedc1dedcb53 (patch)
treea6269c4a7a3c07ca982ef8f0d8fd586f39df3424 /Include
parentf180b31e7629d36265fa36f1560365358b4fd47c (diff)
downloadcpython-2c451489122d539080c8d674b391dedc1dedcb53.zip
cpython-2c451489122d539080c8d674b391dedc1dedcb53.tar.gz
cpython-2c451489122d539080c8d674b391dedc1dedcb53.tar.bz2
gh-117578: Introduce _PyType_GetModuleByDef2 private function (GH-117661)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_typeobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_typeobject.h b/Include/internal/pycore_typeobject.h
index 09c4501..7e533bd 100644
--- a/Include/internal/pycore_typeobject.h
+++ b/Include/internal/pycore_typeobject.h
@@ -164,6 +164,7 @@ extern PyObject * _PyType_GetBases(PyTypeObject *type);
extern PyObject * _PyType_GetMRO(PyTypeObject *type);
extern PyObject* _PyType_GetSubclasses(PyTypeObject *);
extern int _PyType_HasSubclasses(PyTypeObject *);
+PyAPI_FUNC(PyObject *) _PyType_GetModuleByDef2(PyTypeObject *, PyTypeObject *, PyModuleDef *);
// PyType_Ready() must be called if _PyType_IsReady() is false.
// See also the Py_TPFLAGS_READY flag.