mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
5c3a129ecf
commit
790db85c77
5 changed files with 43 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue