mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-42035: Add a PyType_GetName() to get type's short name. (GH-23903)
This commit is contained in:
parent
5269c09145
commit
a390ebea17
10 changed files with 68 additions and 0 deletions
|
@ -106,6 +106,12 @@ Type Objects
|
|||
GC protocol itself by at least implementing the
|
||||
:c:member:`~PyTypeObject.tp_traverse` handle.
|
||||
|
||||
.. c:function:: PyObject* PyType_GetName(PyTypeObject *type)
|
||||
|
||||
Return the type's name. Equivalent to getting the type's ``__name__`` attribute.
|
||||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
.. c:function:: void* PyType_GetSlot(PyTypeObject *type, int slot)
|
||||
|
||||
Return the function pointer stored in the given slot. If the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue