Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix indentation.
  • Loading branch information
ZeroIntensity committed Feb 22, 2026
commit 416f10a292982d8eed3623776747ce10f9f47cdc
35 changes: 19 additions & 16 deletions Doc/c-api/typeobj.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1500,27 +1500,30 @@ and :c:data:`PyType_Type` effectively act as defaults.)


.. c:macro:: Py_TPFLAGS_HAVE_VERSION_TAG
This is a :term:`soft deprecated` macro that does nothing.
Historically, this would indicate that the
:c:member:`~PyTypeObject.tp_version_tag` field was available and
initialized.

This is a :term:`soft deprecated` macro that does nothing.
Historically, this would indicate that the
:c:member:`~PyTypeObject.tp_version_tag` field was available and
initialized.


.. c:macro:: Py_TPFLAGS_INLINE_VALUES
This bit indicates that instances of this type will have an "inline values"
array (containing the object's attributes) placed directly after the end
of the object.

This requires that :c:macro:`Py_TPFLAGS_HAVE_GC` is set.
This bit indicates that instances of this type will have an "inline values"
array (containing the object's attributes) placed directly after the end
of the object.

**Inheritance:**
This requires that :c:macro:`Py_TPFLAGS_HAVE_GC` is set.

This flag is not inherited.
**Inheritance:**

.. versionadded:: 3.13
This flag is not inherited.

.. versionadded:: 3.13


.. c:macro:: Py_TPFLAGS_IS_ABSTRACT

This bit indicates that this is an abstract type and therefore cannot
be instantiated.

Expand All @@ -1534,12 +1537,12 @@ and :c:data:`PyType_Type` effectively act as defaults.)

.. c:macro:: Py_TPFLAGS_HAVE_STACKLESS_EXTENSION

Internal. Do not set or unset this flag.
Historically, this was a reserved flag for use in Stackless Python.
Internal. Do not set or unset this flag.
Historically, this was a reserved flag for use in Stackless Python.

.. warning::
This flag is present in header files, but is not be used.
This may be removed in a future version of CPython.
.. warning::
This flag is present in header files, but is not be used.
This may be removed in a future version of CPython.


.. c:member:: const char* PyTypeObject.tp_doc
Expand Down