From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Sat, 20 May 2023 20:12:10 +0000 (+0100) Subject: gh-49174: document that the effect of calling gc.collect() during a collection is... X-Git-Tag: v3.12.0b1~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30488fa22a8f63753192ae7f1d01665857764e45;p=thirdparty%2FPython%2Fcpython.git gh-49174: document that the effect of calling gc.collect() during a collection is undefined (#104699) --- diff --git a/Doc/library/gc.rst b/Doc/library/gc.rst index 6d5c64df1a1f..0961ca4aaa94 100644 --- a/Doc/library/gc.rst +++ b/Doc/library/gc.rst @@ -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)