Every post or article on __del__ warns about circular references and the fact that its execution is not guaranteed. But what are the dangers of using __del__ except non-guaranteed execution? For example:
- I want to write a
__del__method in a class to be called explicitly on its objectsmyobject.__del__(). Why is it a bad idea? - What is the risk of multiple calls to
myobject.__del__()?