Skip to content

Commit c8f1f2a

Browse files
committed
More precise wording
1 parent 2303aae commit c8f1f2a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎Doc/c-api/gcsupport.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,9 @@ The :c:member:`~PyTypeObject.tp_traverse` handler must have the following type:
319319
:ref:`separate section <duringgc-functions>` below.
320320
321321
If an error occurs during traversal, ignore it and return 0.
322-
If ``tp_traverse`` fails to visit some strong references, objects
323-
may become unreachable and waste memory, but correctness won't be affected.
322+
If ``tp_traverse`` fails to visit some strong references, garbage reference
323+
cycles involving the skipped references will not be reliably broken,
324+
but correctness won't be affected.
324325
For example, if traversal requires a lock that cannot be acquired promptly,
325326
skip the traversal.
326327
The garbage collector will visit your object again in a future pass.

0 commit comments

Comments
 (0)