mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
[3.12] docs: Fix "Py_TPFLAGS_MANAGED_WEAKREF is set in tp_flags" (GH-112237) (#121310)
docs: Fix "Py_TPFLAGS_MANAGED_WEAKREF is set in tp_flags" (GH-112237)
(cherry picked from commit 4232976b02
)
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
This commit is contained in:
parent
e5a19b981d
commit
4ade7723e8
1 changed files with 2 additions and 2 deletions
|
@ -1584,7 +1584,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
|
||||||
weak references to the type object itself.
|
weak references to the type object itself.
|
||||||
|
|
||||||
It is an error to set both the :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` bit and
|
It is an error to set both the :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` bit and
|
||||||
:c:member:`~PyTypeObject.tp_weaklist`.
|
:c:member:`~PyTypeObject.tp_weaklistoffset`.
|
||||||
|
|
||||||
**Inheritance:**
|
**Inheritance:**
|
||||||
|
|
||||||
|
@ -1596,7 +1596,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
|
||||||
**Default:**
|
**Default:**
|
||||||
|
|
||||||
If the :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` bit is set in the
|
If the :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` bit is set in the
|
||||||
:c:member:`~PyTypeObject.tp_dict` field, then
|
:c:member:`~PyTypeObject.tp_flags` field, then
|
||||||
:c:member:`~PyTypeObject.tp_weaklistoffset` will be set to a negative value,
|
:c:member:`~PyTypeObject.tp_weaklistoffset` will be set to a negative value,
|
||||||
to indicate that it is unsafe to use this field.
|
to indicate that it is unsafe to use this field.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue