Parent references: hot or not?
python at dylanreinhardt.com
Sat Apr 19 19:07:41 CEST 2003
On Sat, 2003-04-19 at 10:00, Dylan Reinhardt wrote:
> Sounds like I should be sure to write a __del__ method for Container
> that ensures things work correctly.
And upon re-reading your post you say *not* to do that... :-)
I'd like to understand that a bit better. What would be wrong with:
# ensure all Items are deleted first
for item in self.items.keys():
More information about the Python-list