mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Updated note about collection of cyclic garbage, based on comments from
Chris Ryland.
This commit is contained in:
parent
ef8cd7ca99
commit
c8e8281fb6
1 changed files with 6 additions and 3 deletions
|
@ -45,9 +45,12 @@ allowed to postpone garbage collection or omit it altogether --- it is
|
|||
a matter of implementation quality how garbage collection is
|
||||
implemented, as long as no objects are collected that are still
|
||||
reachable. (Implementation note: the current implementation uses a
|
||||
reference-counting scheme which collects most objects as soon as they
|
||||
become unreachable, but never collects garbage containing circular
|
||||
references.)
|
||||
reference-counting scheme with (optional) delayed detection of
|
||||
cyclicly linked garbage, which collects most objects as soon as they
|
||||
become unreachable, but is not guaranteed to collect garbage
|
||||
containing circular references. See the
|
||||
\citetitle[../lib/module-gc.html]{Python Library Reference} for
|
||||
information on controlling the collection of cyclic garbage.)
|
||||
\index{garbage collection}
|
||||
\index{reference counting}
|
||||
\index{unreachable object}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue