self destruction :)
gcordova at hebmex.com
Thu Jun 27 21:55:16 CEST 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.
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.
More information about the Python-list