diff options
author | Victor Stinner <vstinner@python.org> | 2024-03-14 16:19:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 16:19:36 (GMT) |
commit | 19c3a2ff91ccf7444efadbc8f7e67269060050a2 (patch) | |
tree | a6e7d0e2710d66c585c7ffe4451eee85710d8ba7 /Include | |
parent | b54d7c87aaf23fbd67171d0dd3e4f4ab736e6a48 (diff) | |
download | cpython-19c3a2ff91ccf7444efadbc8f7e67269060050a2.zip cpython-19c3a2ff91ccf7444efadbc8f7e67269060050a2.tar.gz cpython-19c3a2ff91ccf7444efadbc8f7e67269060050a2.tar.bz2 |
gh-111696, PEP 737: Add PyType_GetFullyQualifiedName() function (#116815)
Rewrite tests on type names in Python, they were written in C.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 05187fe..3f6f1ab 100644 --- a/Include/object.h +++ b/Include/object.h @@ -522,6 +522,9 @@ PyAPI_FUNC(void *) PyType_GetModuleState(PyTypeObject *); PyAPI_FUNC(PyObject *) PyType_GetName(PyTypeObject *); PyAPI_FUNC(PyObject *) PyType_GetQualName(PyTypeObject *); #endif +#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030D0000 +PyAPI_FUNC(PyObject *) PyType_GetFullyQualifiedName(PyTypeObject *); +#endif #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030C0000 PyAPI_FUNC(PyObject *) PyType_FromMetaclass(PyTypeObject*, PyObject*, PyType_Spec*, PyObject*); PyAPI_FUNC(void *) PyObject_GetTypeData(PyObject *obj, PyTypeObject *cls); |