diff options
Diffstat (limited to 'Doc')
| -rw-r--r-- | Doc/c-api/type.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst index 49dfb3f671..b3386eaa8b 100644 --- a/Doc/c-api/type.rst +++ b/Doc/c-api/type.rst @@ -35,6 +35,14 @@ Type Objects Clear the internal lookup cache. Return the current version tag. +.. c:function:: long PyType_GetFlags(PyTypeObject* type) + + Return the :attr:`tp_flags` member of *type*. This function is primarily + meant for use with `Py_LIMITED_API`; the individual flag bits are + guaranteed to be stable across Python releases, but access to + :attr:`tp_flags` itself is not part of the limited API. + + .. versionadded:: 3.2 .. c:function:: void PyType_Modified(PyTypeObject *type) |
