[issue7680] pythonw crash while attempting to start() a thread object
dontbugme
report at bugs.python.org
Mon Jan 18 00:31:57 CET 2010
dontbugme <pythonbugsbugmenot at spamavert.com> added the comment:
After asking at the IRC channel, posborne resolved the error:
<posborne> Also, the behaviour of exiting the main thread before all threads has exited is undefined. Is the behaviour different if you add t.join() to the end of the script?
Code:
#!/usr/bin/env python
import threading
class MyThread (threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
def run(self):
print 'hello, dude!'
t = MyThread()
t.start()
t.join()
----------
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7680>
_______________________________________
More information about the Python-bugs-list
mailing list