homepage

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 bamby
Recipients bamby, gvanrossum
Date 2008年02月04日.09:54:22
SpamBayes Score 0.48855898
Marked as misclassified No
Message-id <1202118864.17.0.651480637206.issue1975@psf.upfronthosting.co.za>
In-reply-to
Content
I'm sorry I've forgotten to add one important thing to the script - the
t.setDaemon(True) call, as without it the main thread will wait for the
user thread to stop explicitly. So the correct script is:
 some_time = 6000000 # seconds
 class MyThread(Thread):
 def run(self):
 while (True):
 time.sleep(some_time)
 t = MyThread()
 t.setDaemon(True)
 t.start()
 while(True):
 select.select(None, None, None, some_time)
History
Date User Action Args
2008年02月04日 09:54:24bambysetspambayes_score: 0.488559 -> 0.48855898
recipients: + bamby, gvanrossum
2008年02月04日 09:54:24bambysetspambayes_score: 0.488559 -> 0.488559
messageid: <1202118864.17.0.651480637206.issue1975@psf.upfronthosting.co.za>
2008年02月04日 09:54:23bambylinkissue1975 messages
2008年02月04日 09:54:22bambycreate

AltStyle によって変換されたページ (->オリジナル) /