Skip to content

Commit a3e4929

Browse files
committed
Fix documentation to correct references to Py_TPFLAGS_MANAGED_DICT in typeobj.rst
1 parent 3cf68cd commit a3e4929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/typeobj.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
16051605
Do not confuse this field with :c:member:`~PyTypeObject.tp_weaklist`; that is the list head for
16061606
weak references to the type object itself.
16071607

1608-
It is an error to set both the :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` bit and
1608+
It is an error to set both the :c:macro:`Py_TPFLAGS_MANAGED_DICT` bit and
16091609
:c:member:`~PyTypeObject.tp_weaklistoffset`.
16101610

16111611
**Inheritance:**
@@ -1830,7 +1830,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
18301830
dictionary, so it is may be more efficient to call :c:func:`PyObject_GetAttr`
18311831
when accessing an attribute on the object.
18321832

1833-
It is an error to set both the :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` bit and
1833+
It is an error to set both the :c:macro:`Py_TPFLAGS_MANAGED_DICT` bit and
18341834
:c:member:`~PyTypeObject.tp_dictoffset`.
18351835

18361836
**Inheritance:**

0 commit comments

Comments
 (0)