]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41455: Provide a link to how the third generation is collected in the GC docs...
authorYaroslav Pankovych <31005942+P-Alban@users.noreply.github.com>
Sat, 8 Aug 2020 18:48:21 +0000 (21:48 +0300)
committerGitHub <noreply@github.com>
Sat, 8 Aug 2020 18:48:21 +0000 (19:48 +0100)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Doc/library/gc.rst

index 0c33c865304591ebb8d1e4b8ea6ea4d8309982f9..2d85cd3431711ab603ba517858725c5c06ec0e91 100644 (file)
@@ -106,9 +106,9 @@ The :mod:`gc` module provides the following functions:
    allocations minus the number of deallocations exceeds *threshold0*, collection
    starts.  Initially only generation ``0`` is examined.  If generation ``0`` has
    been examined more than *threshold1* times since generation ``1`` has been
-   examined, then generation ``1`` is examined as well.  Similarly, *threshold2*
-   controls the number of collections of generation ``1`` before collecting
-   generation ``2``.
+   examined, then generation ``1`` is examined as well.
+   With the third generation, things are a bit more complicated,
+   see `Collecting the oldest generation <https://devguide.python.org/garbage_collector/#collecting-the-oldest-generation>`_ for more information.
 
 
 .. function:: get_count()