maybe following recipe from activestate may be usefull.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496960
http://sebulba.wikispaces.com/recipe+thread2
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 6, 7:48 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> tarun wrote:
> > Can anyone help me with a simple code through which the main thread can
> > kill the worker thread it started.
>
> it cannot. threads cannot be killed from the "outside".
>
>
The only way to "kill" a thread is to have
James Matthews wrote:
> You can use the stop method!
You can?
>>> import threading
>>> t = threading.Thread()
>>> t.stop()
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'Thread' object has no attribute 'stop'
>>>
What Python version are you using?
--
http://
tarun wrote:
> Can anyone help me with a simple code through which the main thread can
> kill the worker thread it started.
it cannot. threads cannot be killed from the "outside".
--
http://mail.python.org/mailman/listinfo/python-list
You can use the stop method!
On Jan 6, 2008 2:04 PM, tarun <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> Can anyone help me with a simple code through which the main thread can
> kill the worker thread it started.
>
> Thanks & Regards,
> Tarun Devnani
>
> --
> http://mail.python.org/mailman/listinf
Hello All,
Can anyone help me with a simple code through which the main thread can kill
the worker thread it started.
Thanks & Regards,
Tarun Devnani
--
http://mail.python.org/mailman/listinfo/python-list