mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Issue #17162: Add PyType_GetSlot.
This commit is contained in:
parent
83bdfa08f7
commit
ca7b04644c
6 changed files with 30 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue