Re: Terminating a function

2006-02-17 Thread Ian Leitch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Astan Chee wrote: > I was thinking of threads but I just simply want to terminate a (global) > function after it has been running for more than 5 minutes regardless of > state. > I was assuming I needed threads because it can calculate time elapsed > (

Re: Terminating a function

2006-02-17 Thread [EMAIL PROTECTED]
This might be all you need: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473878 -- http://mail.python.org/mailman/listinfo/python-list

Re: Terminating a function

2006-02-17 Thread Astan Chee
I was thinking of threads but I just simply want to terminate a (global) function after it has been running for more than 5 minutes regardless of state. I was assuming I needed threads because it can calculate time elapsed (that and im rather inexperienced with threads) Thanks again for your he

Re: Terminating a function

2006-02-17 Thread Diez B. Roggisch
Astan Chee wrote: > Hi, > Im rather new to threads in python but Im trying to terminate a function > call (or the execution of the function) after a certain period of time > has passed. > Do i need to use threads with this? if i do, how do i go about doing it? Yes and no. As you didn't tell us mu

Terminating a function

2006-02-17 Thread Astan Chee
Hi, Im rather new to threads in python but Im trying to terminate a function call (or the execution of the function) after a certain period of time has passed. Do i need to use threads with this? if i do, how do i go about doing it? Thanks -- http://mail.python.org/mailman/listinfo/python-list