Michele Simionato wrote: > So I did, and to my dismay 95% of the __del__ methods in the standard > library are just calling a close method!
You can't conclude that this is wrong just from looking at the __del__ method itself. You need to consider whether there is any way the thing being closed could be referenced from somewhere else. If that's so, the __del__ method may be performing a useful service by closing it more promptly than it would otherwise be. -- Greg -- http://mail.python.org/mailman/listinfo/python-list