Skip to content

Commit 2062b3d

Browse files
Update Doc/c-api/typeobj.rst
Co-authored-by: Petr Viktorin <[email protected]>
1 parent fc7fb85 commit 2062b3d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Doc/c-api/typeobj.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,9 +1289,12 @@ and :c:data:`PyType_Type` effectively act as defaults.)
12891289

12901290
.. c:macro:: Py_TPFLAGS_PREHEADER
12911291
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.
1292+
A shorthand for checking if VM-managed fields are present.
1293+
Currently, this macro is equivalent to
1294+
:c:expr:`Py_TPFLAGS_MANAGED_DICT | Py_TPFLAGS_MANAGED_WEAKREF`.
1295+
1296+
This macro is intended for internal usage only; prefer using individual
1297+
flags instead.
12951298

12961299
.. versionadded:: 3.12
12971300

0 commit comments

Comments
 (0)