OOP - iterable class: how to delete one of its objects ?

R.Wieser address at not.available
Mon Nov 4 09:53:21 EST 2019


Rhodri,

> Yes, it can.  That's why you want to create a finalizer to tidy up.

AFAIKS in my case there is nothing to cleanup.  As far as I understood the 
WeakSet will automagically purge the reference whe the object it references 
is destroyed.

I could also try to do it in in the __del__ method though.

Regards,
Rudy Wieser




More information about the Python-list mailing list