self destruction :)
Gustavo Cordova
gcordova at hebmex.com
Thu Jun 27 15:55:16 EDT 2002
>
> i've got a list of dynamicaly instantiated objects of a class
> of my own. how can i let one of the objects delete itself?
>
> i've tried: 'del self', but somehow it didn't work.
> afterwards it should also _not_ be in the list anymore.
>
> thanx,
> guyon
>
In what list?
Can a snake eat it's tail?
An object cannot "forget" itself, it's illogical.
Objects deallocate automagically when the last reference
to it disappears.
-gus
More information about the Python-list
mailing list