Issue #11067: Add PyType_GetFlags, to support PyUnicode_Check

in the limited ABI
This commit is contained in:
Martin v. Löwis 2011-02-05 20:35:29 +00:00
parent 9b142aaae8
commit 738236dbd6
7 changed files with 32 additions and 1 deletions

View file

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