On Mon, Apr 4, 2011 at 11:27 PM, D. S. McNeil <dsm...@gmail.com> wrote: > On Tue, Apr 5, 2011 at 1:47 PM, tvn <nguyenthanh...@gmail.com> 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 sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org