[Tutor] how to stop a thread
shawn bright
nephish at gmail.com
Thu Jan 4 15:59:43 CET 2007
hello there all,
i have a python reference book that got me started knowing how to use
threads, i can declare one as a class, and start it like this
class SomeThread(threading.Thread):
run_process = SomeThread()
run_process.start()
but how do i kill it ? This part is not in my book. Basically the thread
works, and runs in a while loop. Is there a way to destroy the instance of
it after creation ?
thanks all
shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070104/febafc4c/attachment.htm
More information about the Tutor
mailing list