[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:
Miss Islington (bot) 2024-06-26 22:24:25 +02:00 committed by GitHub
parent 38cfa92880
commit d7cd71c72a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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::