diff options
author | Hai Shi <shihai1992@gmail.com> | 2021-08-17 13:39:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 13:39:34 (GMT) |
commit | 3e2c643ae0b21f9e596bfd9c8ec99ca546ea8d0f (patch) | |
tree | be4a37d2598016830e499dd7fb45b75fea71b1e9 /Doc/c-api | |
parent | 6a358bb9482f7595b858ea7b800cbe66f0de5fa1 (diff) | |
download | cpython-3e2c643ae0b21f9e596bfd9c8ec99ca546ea8d0f.zip cpython-3e2c643ae0b21f9e596bfd9c8ec99ca546ea8d0f.tar.gz cpython-3e2c643ae0b21f9e596bfd9c8ec99ca546ea8d0f.tar.bz2 |
bpo-42035: Add PyType_GetQualName() to get a type's qualified name. (GH-27551)
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/type.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst index 630c7db..413294d 100644 --- a/Doc/c-api/type.rst +++ b/Doc/c-api/type.rst @@ -112,6 +112,13 @@ Type Objects .. versionadded:: 3.11 +.. c:function:: PyObject* PyType_GetQualName(PyTypeObject *type) + + Return the type's qualified name. Equivalent to getting the + type's ``__qualname__`` attribute. + + .. versionadded:: 3.11 + .. c:function:: void* PyType_GetSlot(PyTypeObject *type, int slot) Return the function pointer stored in the given slot. If the |