Skip to content

Commit 52996aa

Browse files
gh-107073: fix relevant typo in PyObject_ClearManagedDict (#140032)
1 parent a00655b commit 52996aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/c-api/object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

Doc/c-api/typeobj.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)