mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
[3.13] gh-120937: Reference weakref from the __del__ documentation (GH-120940) (#121061)
gh-120937: Reference weakref from the `__del__` documentation (GH-120940)
(cherry picked from commit 1c13b29d54)
Co-authored-by: chaen <christophe.haen@cern.ch>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
38cfa92880
commit
d7cd71c72a
1 changed files with 2 additions and 0 deletions
|
|
@ -1664,6 +1664,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…
Add table
Add a link
Reference in a new issue