Ah -- I'm sorry I was off-target, and I'm glad someone else had what may
be better advice for you.
Jeff
pgptOZnkOhiE1.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
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?
[snip]
foo = FooClass()
mythread = threading.Thread(foo.stall()
unday, March 13, 2005 9:03 PM
To: Jeff Sacksteder
Cc: python-list@python.org
Subject: Re: Apparently, I don't understand threading
The Python threading model doesn't allow one thread to forcibly terminate
another. This has been discussed many times before, I think that the short
answer i
The Python threading model doesn't allow one thread to forcibly terminate
another. This has been discussed many times before, I think that the short
answer is a combination of (a) it's hard to specify what happens in the
terminated thread, without the possibility of leaving the program in an unkno
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