mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
bpo-42035: Add PyType_GetQualName() to get a type's qualified name. (GH-27551)
This commit is contained in:
parent
6a358bb948
commit
3e2c643ae0
10 changed files with 67 additions and 0 deletions
|
@ -3620,6 +3620,12 @@ PyType_GetName(PyTypeObject *type)
|
|||
return type_name(type, NULL);
|
||||
}
|
||||
|
||||
PyObject *
|
||||
PyType_GetQualName(PyTypeObject *type)
|
||||
{
|
||||
return type_qualname(type, NULL);
|
||||
}
|
||||
|
||||
void *
|
||||
PyType_GetSlot(PyTypeObject *type, int slot)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue