diff options
author | Petr Viktorin <encukou@gmail.com> | 2021-07-23 13:21:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 13:21:11 (GMT) |
commit | a4760cc32d9e5dac7be262e9736eb30502cd7be3 (patch) | |
tree | 6f791f7d6c0dacea9cdeccd68e0d405109b4bf03 /Doc/c-api | |
parent | 7d28a6eb90e2e381e13ba21073c6868fdf6eb058 (diff) | |
download | cpython-a4760cc32d9e5dac7be262e9736eb30502cd7be3.zip cpython-a4760cc32d9e5dac7be262e9736eb30502cd7be3.tar.gz cpython-a4760cc32d9e5dac7be262e9736eb30502cd7be3.tar.bz2 |
bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make Py_TPFLAGS_HAVE_VERSION_TAG no-op (GH-27260)
* Remove code that checks Py_TPFLAGS_HAVE_VERSION_TAG
The field is always present in the type struct, as explained
in the added comment.
* Remove Py_TPFLAGS_HAVE_AM_SEND
The flag is not needed, and since it was added in 3.10 it can be removed now.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/typeobj.rst | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index 004cecd..b18e385 100644 --- a/Doc/c-api/typeobj.rst +++ b/Doc/c-api/typeobj.rst @@ -1098,8 +1098,7 @@ and :c:type:`PyType_Type` effectively act as defaults.) This is a bitmask of all the bits that pertain to the existence of certain fields in the type object and its extension structures. Currently, it includes - the following bits: :const:`Py_TPFLAGS_HAVE_STACKLESS_EXTENSION`, - :const:`Py_TPFLAGS_HAVE_VERSION_TAG`. + the following bits: :const:`Py_TPFLAGS_HAVE_STACKLESS_EXTENSION`. **Inheritance:** @@ -1179,14 +1178,6 @@ and :c:type:`PyType_Type` effectively act as defaults.) .. versionadded:: 3.9 - - .. data:: Py_TPFLAGS_HAVE_AM_SEND - - This bit is set when the :c:member:`~PyAsyncMethods.am_send` entry is present in the - :c:member:`~PyTypeObject.tp_as_async` slot of type structure. - - .. versionadded:: 3.10 - .. data:: Py_TPFLAGS_IMMUTABLETYPE This bit is set for type objects that are immutable: type attributes cannot be set nor deleted. |