daemon threads
Thomas Heller
thomas.heller at ion-tof.com
Fri Oct 5 13:55:54 EDT 2001
I'm using a background thread running all the time.
Sometimes when Python exits I get a traceback like this:
Unhandled exception in thread:
Traceback (most recent call last):
File "c:\python21\lib\threading.py", line 393, in __bootstrap
self.__stop()
File "c:\python21\lib\threading.py", line 399, in __stop
self.__block.notifyAll()
File "c:\python21\lib\threading.py", line 235, in notifyAll
self.notify(len(self.__waiters))
File "c:\python21\lib\threading.py", line 217, in notify
me = currentThread()
TypeError: object of type 'None' is not callable
This traceback does not appear when I register an atexit
function to stop the thread.
Is this behaviour intended, or am I doing something wrong?
I would have the impression that daemon threads would have to
cleanup themselves...
Thomas
More information about the Python-list
mailing list