mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-111696, PEP 737: Add PyType_GetFullyQualifiedName() function (#116815)
Rewrite tests on type names in Python, they were written in C.
This commit is contained in:
parent
b54d7c87aa
commit
19c3a2ff91
11 changed files with 161 additions and 94 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue