This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dontbugme
Recipients amaury.forgeotdarc, dontbugme, ezio.melotti
Date 2010-01-17.23:31:54
SpamBayes Score 6.4045535e-06
Marked as misclassified No
Message-id <1263771117.06.0.386191082396.issue7680@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2010-01-17 23:31:57dontbugmesetrecipients: + dontbugme, amaury.forgeotdarc, ezio.melotti
2010-01-17 23:31:57dontbugmesetmessageid: <1263771117.06.0.386191082396.issue7680@psf.upfronthosting.co.za>
2010-01-17 23:31:54dontbugmelinkissue7680 messages
2010-01-17 23:31:54dontbugmecreate