What's new in 3.0 about threading?

郑义 ofzhengyi at gmail.com
Fri Jan 30 12:19:21 EST 2009


Hello
I have questions about threading:

import threading
class myThread(threading.Thread):
    def run(self):
        print('hello,threads')
if __name__=='__main__':
    threads=myThread()
    threads.start()

Above program does't work at 'Run Module' in IDLE,but it works well under
executing scripts.Is it anything wrong?
WindowXP,Python 3.0
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090131/3f949d6a/attachment.html>


More information about the Python-list mailing list