__del__ and wisdom

Ethan Furman ethan at stoneleaf.us
Wed May 9 17:13:16 EDT 2012


Every time discussion about __del__ had come up I had thought to myself, 
"yeah, but I'm being careful to not have reference loops -- /my/ classes 
are okay."

and then...


BITE!

But hey, it wasn't a reference loop that got me, it was data being 
written back to disk after the disk portion had changed, thus clobbering 
new data with old.

Yeah, I know, that's not really any better.

*sigh*

Okay, no more __del__ for me!

~Ethan~

Knowledge is knowing that tomatoes are a fruit.
Wisdom is not putting them in a fruit salad.



More information about the Python-list mailing list