File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -600,7 +600,7 @@ Object Protocol
600600
601601 Clear the managed dictionary of *obj *.
602602
603- This function must only be called in a traverse function of the type which
603+ This function must only be called in a clear function of the type which
604604 has the :c:macro: `Py_TPFLAGS_MANAGED_DICT ` flag set.
605605
606606 .. versionadded :: 3.13
Original file line number Diff line number Diff line change @@ -1704,7 +1704,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
17041704 :c:func: `Py_CLEAR ` macro performs the operations in a safe order.
17051705
17061706 If the :c:macro: `Py_TPFLAGS_MANAGED_DICT ` bit is set in the
1707- :c:member: `~PyTypeObject.tp_flags ` field, the traverse function must call
1707+ :c:member: `~PyTypeObject.tp_flags ` field, the clear function must call
17081708 :c:func: `PyObject_ClearManagedDict ` like this::
17091709
17101710 PyObject_ClearManagedDict((PyObject*)self);
You can’t perform that action at this time.
0 commit comments