Re: hand made class with destructor and the logging module

2010-10-27 Thread Vinay Sajip
On Oct 27, 3:21 pm, climb65 wrote: > This class has a destructor which is expected to log something into my log > file if a crash occurs. > Well, the destructor works well but during the crash, python has already > closed the log file and the reference to the Logger has been set to None. > So, I c

hand made class with destructor and the logging module

2010-10-27 Thread climb65
Hello, I have a handmade class within a python program which uses the logging module. This class has a destructor which is expected to log something into my log file if a crash occurs. Well, the destructor works well but during the crash, python has already closed the log file and the reference