diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2014-02-04 08:33:05 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2014-02-04 08:33:05 (GMT) |
commit | ca7b04644ce7cbc828a28f47be421029acb38eb7 (patch) | |
tree | 0a5218b57db2d7b322b1dec957872319f3bed533 /Include | |
parent | 83bdfa08f7747466d0925323a7d94a26470fcd32 (diff) | |
download | cpython-ca7b04644ce7cbc828a28f47be421029acb38eb7.zip cpython-ca7b04644ce7cbc828a28f47be421029acb38eb7.tar.gz cpython-ca7b04644ce7cbc828a28f47be421029acb38eb7.tar.bz2 |
Issue #17162: Add PyType_GetSlot.
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 05bffc9..68ca7b4 100644 --- a/Include/object.h +++ b/Include/object.h @@ -439,6 +439,9 @@ PyAPI_FUNC(PyObject*) PyType_FromSpec(PyType_Spec*); #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000 PyAPI_FUNC(PyObject*) PyType_FromSpecWithBases(PyType_Spec*, PyObject*); #endif +#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03040000 +PyAPI_FUNC(void*) PyType_GetSlot(PyTypeObject*, int); +#endif #ifndef Py_LIMITED_API /* The *real* layout of a type object when allocated on the heap */ |