Thank you, that's exactly what I need!
Andrey
On May 26, 4:46 pm, William Stein [EMAIL PROTECTED] wrote:
On Mon, May 26, 2008 at 4:38 PM, Andrey Novoseltsev [EMAIL PROTECTED] wrote:
Is there any way to automatically terminate the current computation if
it takes longer than given amount of
On Mon, May 26, 2008 at 4:38 PM, Andrey Novoseltsev [EMAIL PROTECTED] wrote:
Is there any way to automatically terminate the current computation if
it takes longer than given amount of time (say, a minute)? I want it
to be inside a loop that will stop some iterations and continue, if
they
If you want to tweak this, it might be helpful to look at the signal
module in python, which is presumably what the above alarm function
uses; a helpful example is at:
http://docs.python.org/lib/node545.html
...and the parent documentation to that has all the details.
-M. Hampton
On May 26,