We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__del__
1 parent 38cfa92 commit d7cd71cCopy full SHA for d7cd71c
Doc/reference/datamodel.rst
@@ -1664,6 +1664,8 @@ Basic customization
1664
1665
It is not guaranteed that :meth:`__del__` methods are called for objects
1666
that still exist when the interpreter exits.
1667
+ :class:`weakref.finalize` provides a straightforward way to register
1668
+ a cleanup function to be called when an object is garbage collected.
1669
1670
.. note::
1671
0 commit comments