diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2011-02-05 20:35:29 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2011-02-05 20:35:29 (GMT) |
commit | 738236dbd62aab5f0cf27f9ba0f2de3cb65802d2 (patch) | |
tree | b531bab8d3e4272e931f74297c988f9b26f71f9e /Doc | |
parent | 9b142aaae8581cc436c5a822bfac57e1687f6743 (diff) | |
download | cpython-738236dbd62aab5f0cf27f9ba0f2de3cb65802d2.zip cpython-738236dbd62aab5f0cf27f9ba0f2de3cb65802d2.tar.gz cpython-738236dbd62aab5f0cf27f9ba0f2de3cb65802d2.tar.bz2 |
Issue #11067: Add PyType_GetFlags, to support PyUnicode_Check
in the limited ABI
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 49dfb3f..b3386ea 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) |