diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-09-17 18:11:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-17 18:11:04 (GMT) |
commit | 4ab46d794961491ed185c195d53da7ee6a16e646 (patch) | |
tree | d8c39fb69ba33674cf8a240f6d068d0cf710d7a3 /Include/object.h | |
parent | 132a7d7cdbc7cb89fa1c1f4e8192241c3d68f549 (diff) | |
download | cpython-4ab46d794961491ed185c195d53da7ee6a16e646.zip cpython-4ab46d794961491ed185c195d53da7ee6a16e646.tar.gz cpython-4ab46d794961491ed185c195d53da7ee6a16e646.tar.bz2 |
bpo-31497: Add private helper _PyType_Name(). (#3630)
This function returns the last component of tp_name after a dot.
Returns tp_name itself if it doesn't contain a dot.
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 9bb780e..cb57359 100644 --- a/Include/object.h +++ b/Include/object.h @@ -501,6 +501,7 @@ PyAPI_FUNC(PyObject *) PyType_GenericAlloc(PyTypeObject *, Py_ssize_t); PyAPI_FUNC(PyObject *) PyType_GenericNew(PyTypeObject *, PyObject *, PyObject *); #ifndef Py_LIMITED_API +PyAPI_FUNC(const char *) _PyType_Name(PyTypeObject *); PyAPI_FUNC(PyObject *) _PyType_Lookup(PyTypeObject *, PyObject *); PyAPI_FUNC(PyObject *) _PyType_LookupId(PyTypeObject *, _Py_Identifier *); PyAPI_FUNC(PyObject *) _PyObject_LookupSpecial(PyObject *, _Py_Identifier *); |