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 @@ -585,7 +585,7 @@ Object Protocol
585585
586586 Clear the managed dictionary of *obj *.
587587
588- This function must only be called in a traverse function of the type which
588+ This function must only be called in a clear function of the type which
589589 has the :c:macro: `Py_TPFLAGS_MANAGED_DICT ` flag set.
590590
591591 .. versionadded :: 3.13
Original file line number Diff line number Diff line change @@ -1533,7 +1533,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
15331533 :c:func: `Py_CLEAR ` macro performs the operations in a safe order.
15341534
15351535 If the :c:macro: `Py_TPFLAGS_MANAGED_DICT ` bit is set in the
1536- :c:member: `~PyTypeObject.tp_flags ` field, the traverse function must call
1536+ :c:member: `~PyTypeObject.tp_flags ` field, the clear function must call
15371537 :c:func: `PyObject_ClearManagedDict ` like this::
15381538
15391539 PyObject_ClearManagedDict((PyObject*)self);
You can’t perform that action at this time.
0 commit comments