Destructor
Michael Hudson
mwh at python.net
Wed May 22 06:09:45 EDT 2002
Rajat Chopra <rajat at cs.utexas.edu> writes:
> I have a very quick and basic question -- but I was just when exactly a
> Destructor is invoked? Do you have to delete the object (ex: del OBJECT )
> or is it enough to say OBJECT = None ???
Maybe you should read
http://starship.python.net/crew/mwh/hacks/objectthink.html
Asking about differences between "del ob" and "ob = None" suggests a
certain level of misunderstanding...
(NB: this page doesn't talk about destructors, so it doesn't answer
your question -- but it might give you more insight).
Cheers,
M.
--
58. Fools ignore complexity. Pragmatists suffer it. Some can avoid
it. Geniuses remove it.
-- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html
More information about the Python-list
mailing list