Skip to content

Commit 3cef780

Browse files
[3.14] pythongh-107073: fix relevant typo in PyObject_ClearManagedDict (pythonGH-140032) (python#140033)
pythongh-107073: fix relevant typo in `PyObject_ClearManagedDict` (pythonGH-140032) (cherry picked from commit 52996aa) Co-authored-by: Mikhail Efimov <[email protected]>
1 parent 0b84334 commit 3cef780

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
@@ -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

Doc/c-api/typeobj.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
16911691
:c:func:`Py_CLEAR` macro performs the operations in a safe order.
16921692

16931693
If the :c:macro:`Py_TPFLAGS_MANAGED_DICT` bit is set in the
1694-
:c:member:`~PyTypeObject.tp_flags` field, the traverse function must call
1694+
:c:member:`~PyTypeObject.tp_flags` field, the clear function must call
16951695
:c:func:`PyObject_ClearManagedDict` like this::
16961696

16971697
PyObject_ClearManagedDict((PyObject*)self);

0 commit comments

Comments
 (0)