[Python-checkins] bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703) (GH-21788)
Miss Islington (bot)
webhook-mailer at python.org
Wed Aug 12 06:53:29 EDT 2020
https://github.com/python/cpython/commit/f3b6f3cd9ac6931ae346cf298fae7b691d5656bb
commit: f3b6f3cd9ac6931ae346cf298fae7b691d5656bb
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-08-12T06:53:13-04:00
summary:
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 at gmail.com>
(cherry picked from commit 82ca8fada15b121866530f2cdac1b7055be4a244)
Co-authored-by: Yaroslav Pankovych <31005942+P-Alban at users.noreply.github.com>
files:
M Doc/library/gc.rst
diff --git a/Doc/library/gc.rst b/Doc/library/gc.rst
index af45581e33527..1f09ed52ce867 100644
--- a/Doc/library/gc.rst
+++ b/Doc/library/gc.rst
@@ -103,9 +103,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()
More information about the Python-checkins
mailing list