mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +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
|
a matter of implementation quality how garbage collection is
|
||||||
implemented, as long as no objects are collected that are still
|
implemented, as long as no objects are collected that are still
|
||||||
reachable. (Implementation note: the current implementation uses a
|
reachable. (Implementation note: the current implementation uses a
|
||||||
reference-counting scheme which collects most objects as soon as they
|
reference-counting scheme with (optional) delayed detection of
|
||||||
become unreachable, but never collects garbage containing circular
|
cyclicly linked garbage, which collects most objects as soon as they
|
||||||
references.)
|
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{garbage collection}
|
||||||
\index{reference counting}
|
\index{reference counting}
|
||||||
\index{unreachable object}
|
\index{unreachable object}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue