RE: Apparently, I don't understand threading

2005-03-13 Thread jwsacksteder
I realize that. I'm using a variant of the polite shutdown request technique used in the python cookbook. The problem is that thread creation is apparently blocking instead of continuing program execution. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday,

Apparently, I don't understand threading

2005-03-13 Thread jwsacksteder
The following script does not behave as expected. I wanted to terminate the 'mythread' thread after 5 seconds. What I see is the threading.Thread call blocking until the 15 second sleep is done. Suggestions?   import threading from time import sleep   class FooClass:     def