weakrefs and bound methods

Michele Simionato michele.simionato at gmail.com
Sun Oct 7 12:38:23 EDT 2007


On Oct 7, 12:26 pm, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:

> Drop all those `__del__()` methods as they prevent the garbage collector
> from collecting "cycles".

I fully agree and I will add that __del__ methods are always
a bad idea. Also notice that recently Raymond Hetting said in
this list that he wanted to submit a PEP to remove __del__ from
Python 3000 (I don't know if this will ever happen tough).

   Michele Simionato




More information about the Python-list mailing list