Garbage collection

Jarek Zgoda jzgoda at o2.usun.pl
Tue Feb 19 09:51:09 CET 2008


Ken napisał(a):

> The good news is that you almost never have to do anything to clean up. 
> My guess is that you might not even need to overload __del__ at all. 
> People from a C++ background often mistakenly think that they have to
> write destructors when in fact they do not.

Is that true assumption that __del__ has the same purpose (and same
limitations, i.e. the are not guaranteed to be fired) as Java finalizer
methods?

-- 
Jarek Zgoda
Skype: jzgoda | GTalk: zgoda at jabber.aster.pl | voice: +48228430101

"We read Knuth so you don't have to." (Tim Peters)



More information about the Python-list mailing list