8000 bpo-41455: Provide a link to how the third generation is collected in… · python/cpython@f3b6f3c · GitHub
[go: up one dir, main page]

Skip to content

Commit f3b6f3c

Browse files
bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703) (GH-21788)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> (cherry picked from commit 82ca8fa) Co-authored-by: Yaroslav Pankovych <31005942+P-Alban@users.noreply.github.com>
1 parent a8ad127 commit f3b6f3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/gc.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ The :mod:`gc` module provides the following functions:
103103
allocations minus the number of deallocations exceeds *threshold0*, collection
104104
starts. Initially only generation ``0`` is examined. If generation ``0`` has
105105
been examined more than *threshold1* times since generation ``1`` has been
106-
examined, then generation ``1`` is examined as well. Similarly, *threshold2*
107-
controls the number of collections of generation ``1`` before collecting
108-
generation ``2``.
106+
examined, then generation ``1`` is examined as well.
107+
With the third generation, things are a bit more complicated,
108+
see `Collecting the oldest generation <https://devguide.python.org/garbage_collector/#collecting-the-oldest-generation>`_ for more information.
109109

110110

111111
.. function:: get_count()

0 commit comments

Comments
 (0)
0