On Mon, Apr 4, 2011 at 11:27 PM, D. S. McNeil <[email protected]> wrote: > On Tue, Apr 5, 2011 at 1:47 PM, tvn <[email protected]> wrote: >> Is there a timeout mechanism in Sage or Python that allows me to kill or >> raise an exception on a command that exceeds some time threshold ? > > You probably want "alarm", which raises a KeyboardInterrupt.
We should add an example of this to the tutorial or something, since people seem to ask this exact same question every few weeks. -- William -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
