Message97986
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() |
|
Date |
User |
Action |
Args |
2010-01-17 23:31:57 | dontbugme | set | recipients:
+ dontbugme, amaury.forgeotdarc, ezio.melotti |
2010-01-17 23:31:57 | dontbugme | set | messageid: <1263771117.06.0.386191082396.issue7680@psf.upfronthosting.co.za> |
2010-01-17 23:31:54 | dontbugme | link | issue7680 messages |
2010-01-17 23:31:54 | dontbugme | create | |
|