mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
merge with 3.4
This commit is contained in:
commit
e21a531ef1
24 changed files with 140 additions and 117 deletions
|
@ -867,11 +867,8 @@ reclaim the memory belonging to any objects in a reference cycle, or referenced
|
|||
from the objects in the cycle, even though there are no further references to
|
||||
the cycle itself.
|
||||
|
||||
The cycle detector is able to detect garbage cycles and can reclaim them so long
|
||||
as there are no finalizers implemented in Python (:meth:`__del__` methods).
|
||||
When there are such finalizers, the detector exposes the cycles through the
|
||||
:mod:`gc` module (specifically, the :attr:`~gc.garbage` variable in that module).
|
||||
The :mod:`gc` module also exposes a way to run the detector (the
|
||||
The cycle detector is able to detect garbage cycles and can reclaim them.
|
||||
The :mod:`gc` module exposes a way to run the detector (the
|
||||
:func:`~gc.collect` function), as well as configuration
|
||||
interfaces and the ability to disable the detector at runtime. The cycle
|
||||
detector is considered an optional component; though it is included by default,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue