gh-76785: Add _PyType_GetModuleName() to the Internal C-API (gh-112323)

The new function corresponds to the existing (public) PyType_GetName() and PyType_GetQualName().
This commit is contained in:
Eric Snow 2023-11-22 15:03:33 -07:00 committed by GitHub
parent 5c3a129ecf
commit 790db85c77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 43 additions and 0 deletions

View file

@ -4540,6 +4540,12 @@ PyType_GetQualName(PyTypeObject *type)
return type_qualname(type, NULL);
}
PyObject *
_PyType_GetModuleName(PyTypeObject *type)
{
return type_module(type, NULL);
}
void *
PyType_GetSlot(PyTypeObject *type, int slot)
{