Re: Killing worker threads

2008-01-07 Thread Ruediger
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

Re: Killing worker threads

2008-01-07 Thread kyosohma
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

Re: Killing worker threads

2008-01-06 Thread Fredrik Lundh
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://

Re: Killing worker threads

2008-01-06 Thread Fredrik Lundh
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

Re: Killing worker threads

2008-01-06 Thread James Matthews
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

Killing worker threads

2008-01-06 Thread tarun
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