Skip to content

Commit

Permalink
gh-49174: document that the effect of calling gc.collect() during a c…
Browse files Browse the repository at this point in the history
…ollection is undefined (#104699)
  • Loading branch information
iritkatriel committed May 20, 2023
1 parent d1732fe commit 30488fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Doc/library/gc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ The :mod:`gc` module provides the following functions:
is run. Not all items in some free lists may be freed due to the
particular implementation, in particular :class:`float`.

The effect of calling ``gc.collect()`` while the interpreter is already
performing a collection is undefined.


.. function:: set_debug(flags)

Expand Down

0 comments on commit 30488fa

Please sign in to comment.