[EMAIL PROTECTED] ha escrito:
> def main():
> threads = []
> try:
> for i in range(5):
> t = StoppableThread()
> t.start()
> sleep(0.001)
> threads.append(t)
>
>
> except KeyboardInterrupt:
> for t in threads:
>
I am trying to use Peter's StoppableThread(threading.Thread).
What I want to do is to start 5 child threads, then do something, then
when got ^C keyboard exception, stop the child thread.
For some reason (apparently strange for me :) ), the child threads can
NOT be stopped.
See the enclosed code