Skip to content

Commit 3195c33

Browse files
Add Py_TPFLAGS_PREHEADER to typeobj.rst
1 parent 0eb59b3 commit 3195c33

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Doc/c-api/typeobj.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,15 @@ and :c:data:`PyType_Type` effectively act as defaults.)
12871287
:c:member:`~PyTypeObject.tp_weaklistoffset` field is set in a superclass.
12881288

12891289

1290+
.. c:macro:: Py_TPFLAGS_PREHEADER
1291+
1292+
This is a shorthand for checking is :c:macro:`Py_TPFLAGS_MANAGED_DICT` or
1293+
:c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` present. Supposed only for internal
1294+
usage.
1295+
1296+
.. versionadded:: 3.12
1297+
1298+
12901299
.. c:macro:: Py_TPFLAGS_ITEMS_AT_END
12911300
12921301
Only usable with variable-size types, i.e. ones with non-zero

0 commit comments

Comments
 (0)