mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
bpo-32388: Remove cross-version binary compatibility requirement in tp_flags (GH-4944)
It is now allowed to add new fields at the end of the PyTypeObject struct without having to allocate a dedicated compatibility flag in tp_flags. This will reduce the risk of running out of bits in the 32-bit tp_flags value.
This commit is contained in:
parent
43fdbd2729
commit
ada319bb6d
18 changed files with 52 additions and 51 deletions
|
|
@ -1099,6 +1099,11 @@ and :c:type:`PyType_Type` effectively act as defaults.)
|
|||
|
||||
.. versionadded:: 3.4
|
||||
|
||||
.. deprecated:: 3.8
|
||||
This flag isn't necessary anymore, as the interpreter assumes the
|
||||
:c:member:`~PyTypeObject.tp_finalize` slot is always present in the
|
||||
type structure.
|
||||
|
||||
|
||||
.. c:member:: const char* PyTypeObject.tp_doc
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue