summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2020-11-03 21:27:12 (GMT)
committerGitHub <noreply@github.com>2020-11-03 21:27:12 (GMT)
commit57aaaa8d2a43bddffeca4ead5632ce6652945cc0 (patch)
tree30d87542dadc05d27d170ae279cb80c82855c9fc /Include/cpython
parenta603c3d371cda76bae75836faf068e146eb6ab76 (diff)
downloadcpython-57aaaa8d2a43bddffeca4ead5632ce6652945cc0.zip
cpython-57aaaa8d2a43bddffeca4ead5632ce6652945cc0.tar.gz
cpython-57aaaa8d2a43bddffeca4ead5632ce6652945cc0.tar.bz2
Add _PyType_GetModuleByDef (GH-22835)
See https://mail.python.org/archives/list/capi-sig@python.org/thread/T3P2QNLNLBRFHWSKYSTPMVEIL2EEKFJU/ for discussion. https://bugs.python.org/issue42100
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h
index 875a600..0db53c3 100644
--- a/Include/cpython/object.h
+++ b/Include/cpython/object.h
@@ -296,6 +296,8 @@ PyAPI_FUNC(PyObject *) _PyObject_LookupSpecial(PyObject *, _Py_Identifier *);
PyAPI_FUNC(PyTypeObject *) _PyType_CalculateMetaclass(PyTypeObject *, PyObject *);
PyAPI_FUNC(PyObject *) _PyType_GetDocFromInternalDoc(const char *, const char *);
PyAPI_FUNC(PyObject *) _PyType_GetTextSignatureFromInternalDoc(const char *, const char *);
+struct PyModuleDef;
+PyAPI_FUNC(PyObject *) _PyType_GetModuleByDef(PyTypeObject *, struct PyModuleDef *);
struct _Py_Identifier;
PyAPI_FUNC(int) PyObject_Print(PyObject *, FILE *, int);