Issue #17162: Add PyType_GetSlot.

This commit is contained in:
Martin v. Löwis 2014-02-04 09:33:05 +01:00
parent 83bdfa08f7
commit ca7b04644c
6 changed files with 30 additions and 2 deletions

View file

@ -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