Skip to content

Commit d45c1df

Browse files
[3.11] gh-49174: document that the effect of calling gc.collect() during a collection is undefined (GH-104699) (#104703)
gh-49174: document that the effect of calling gc.collect() during a collection is undefined (GH-104699) (cherry picked from commit 30488fa) Co-authored-by: Irit Katriel <[email protected]>
1 parent 89bd454 commit d45c1df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/gc.rst

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ The :mod:`gc` module provides the following functions:
5050
is run. Not all items in some free lists may be freed due to the
5151
particular implementation, in particular :class:`float`.
5252

53+
The effect of calling ``gc.collect()`` while the interpreter is already
54+
performing a collection is undefined.
55+
5356

5457
.. function:: set_debug(flags)
5558

0 commit comments

Comments
 (0)