Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-141004: Document missing type flags#145127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ZeroIntensity merged 5 commits intopython:mainfromZeroIntensity:document-type-flags
Feb 27, 2026
Merged
Show file tree
Hide file tree
Changes fromall commits
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
46 changes: 46 additions & 0 deletionsDoc/c-api/typeobj.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1499,6 +1499,52 @@ and :c:data:`PyType_Type` effectively act as defaults.)
It will be removed in a future version of CPython


..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.


..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.

**Inheritance:**

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.

**Inheritance:**

This flag is not inherited.

..seealso::
:mod:`abc`


..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.

..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::constchar* PyTypeObject.tp_doc
..corresponding-type-slot::Py_tp_doc
Expand Down
3 changes: 0 additions & 3 deletionsTools/check-c-api-docs/ignored_c_api.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,9 +24,6 @@ PyABIInfo_FREETHREADING_AGNOSTIC
PyModuleDef_Type
# object.h
Py_INVALID_SIZE
Py_TPFLAGS_HAVE_VERSION_TAG
Py_TPFLAGS_INLINE_VALUES
Py_TPFLAGS_IS_ABSTRACT
# pyexpat.h
PyExpat_CAPI_MAGIC
PyExpat_CAPSULE_NAME
Expand Down
Loading

[8]ページ先頭

©2009-2026 Movatter.jp