Does python hate cathy?
Edward A. Falk
falk at green.rahul.net
Tue Mar 25 10:58:51 EDT 2008
In article <mailman.2308.1206425945.9267.python-list at python.org>,
Patrick Mullen <saluk64007 at gmail.com> wrote:
>Then again, I can count the number of times I have ever needed __del__
>with no fingers (never used it!). Still, quite interesting to
>explore.
I used it once, for an object that had a doubly-linked list.
The __del__() method walked the list, setting all the elements'
prev/next pointers to None to make sure the elements of the list would
get garbage-collected.
--
-Ed Falk, falk at despams.r.us.com
http://thespamdiaries.blogspot.com/
More information about the Python-list
mailing list