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 /Doc/c-api | |
parent | 83bdfa08f7747466d0925323a7d94a26470fcd32 (diff) | |
download | cpython-ca7b04644ce7cbc828a28f47be421029acb38eb7.zip cpython-ca7b04644ce7cbc828a28f47be421029acb38eb7.tar.gz cpython-ca7b04644ce7cbc828a28f47be421029acb38eb7.tar.bz2 |
Issue #17162: Add PyType_GetSlot.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/type.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst index 5d83254..9e2b939 100644 --- a/Doc/c-api/type.rst +++ b/Doc/c-api/type.rst @@ -97,3 +97,13 @@ Type Objects types. This allows the caller to reference other heap types as base types. .. versionadded:: 3.3 + +.. c:function:: void* PyType_GetSlot(PyTypeObject *type, int slot) + + Return the function pointer stored int the given slot. If the + result is *NULL*, this indicates that either the slot is *NULL*, + or that the function was called with invalid parameters. + Callers will typically cast the result pointer into the appropriate + function type. + + .. versionadded:: 3.4 |