PyDocs

Nav

Python Runtime Services

object.__del__

builtins

method of object
  • object.__del__(self)
Called when the instance is about to be destroyed. This is also called a finalizer or (improperly) a destructor. If a base class has a __del__() method, the derived class’s __del__() method, if any, must explicitly call it to ensure proper deletion of the base class part of the instance.

The official docs include a CPython implementation detail for this entry.

0 Examples
No examples for builtins/object.__del__.
See Also
No see-alsos for builtins/object.__del__
0 Notes
No notes for object.__del__