mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Issue #18112: PEP 442 implementation (safe object finalization).
This commit is contained in:
parent
c5d95b17ac
commit
796564c27b
25 changed files with 1254 additions and 321 deletions
|
@ -1120,12 +1120,10 @@ Basic customization
|
|||
``sys.last_traceback`` keeps the stack frame alive). The first situation
|
||||
can only be remedied by explicitly breaking the cycles; the latter two
|
||||
situations can be resolved by storing ``None`` in ``sys.last_traceback``.
|
||||
Circular references which are garbage are detected when the option cycle
|
||||
detector is enabled (it's on by default), but can only be cleaned up if
|
||||
there are no Python- level :meth:`__del__` methods involved. Refer to the
|
||||
documentation for the :mod:`gc` module for more information about how
|
||||
:meth:`__del__` methods are handled by the cycle detector, particularly
|
||||
the description of the ``garbage`` value.
|
||||
Circular references which are garbage are detected and cleaned up when
|
||||
the cyclic garbage collector is enabled (it's on by default). Refer to the
|
||||
documentation for the :mod:`gc` module for more information about this
|
||||
topic.
|
||||
|
||||
.. warning::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue