mirror of https://github.com/python/cpython
gh-120937: Reference weakref from the `__del__` documentation (#120940)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
22b0de2755
commit
1c13b29d54
|
@ -1667,6 +1667,8 @@ Basic customization
|
|||
|
||||
It is not guaranteed that :meth:`__del__` methods are called for objects
|
||||
that still exist when the interpreter exits.
|
||||
:class:`weakref.finalize` provides a straightforward way to register
|
||||
a cleanup function to be called when an object is garbage collected.
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
Loading…
Reference in New Issue