Jack schrieb: > I didn't call del explicitly. I'm expecting Python to call it when > the program exits. I put a logging line in __del__() but I never > see that line printed. It seems that __del__() is not being called > even when the program exits. Any idea why? > >
http://effbot.org/pyfaq/my-class-defines-del-but-it-is-not-called-when-i-delete-the-object.htm better solutions: http://docs.python.org/ref/try.html http://docs.python.org/whatsnew/pep-343.html Gregor -- http://mail.python.org/mailman/listinfo/python-list