__del__ not called?
Gregor Horvath
g.horvath at gmx.at
Mon Mar 13 03:39:28 EST 2006
Felipe Almeida Lessa schrieb:
>>>>del B
>>>># We'll to tell him to collect the garbage here, but
>
> ... # usually it should not be necessary.
Thanks. If I do
del B
then the __del__ of A gets called.
That surprises me. I thought that B gets del'd by python when it goes
out of scope?
Do I manually have to del all class objects, so that their class
attributes get gc'd ????
--
Gregor
More information about the Python-list
mailing list