Perhaps this would be a good addition to functions like `solve`, `simplify`, `integrate`, etc. A parameter, maybe `max_time`, would take no. of seconds as input and stop the respective execution when it hits the max.
On Sat, Feb 21, 2015 at 5:07 AM, Jason Moore <[email protected]> wrote: > Maybe this: > http://stackoverflow.com/questions/366682/how-to-limit-execution-time-of-a-function-call-in-python > > > Jason > moorepants.info > +01 530-601-9791 > > On Fri, Feb 20, 2015 at 3:12 PM, Paul Royik <[email protected]> > wrote: > >> I mean in program, not in command window. >> >> On Saturday, February 21, 2015 at 1:08:10 AM UTC+2, Jason Moore wrote: >>> >>> <ctrl>-C will terminate a running command. >>> >>> >>> Jason >>> moorepants.info >>> +01 530-601-9791 >>> >>> On Fri, Feb 20, 2015 at 2:53 PM, Paul Royik <[email protected]> wrote: >>> >>>> Is there any way to stop long running function? >>>> >>>> Simplify sometimes runs too long. >>>> I want to terminate it after 30 seconds. >>>> >>>> >>>> Thank you. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "sympy" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>>> Visit this group at http://groups.google.com/group/sympy. >>>> To view this discussion on the web visit https://groups.google.com/d/ >>>> msgid/sympy/31c4c890-02c3-4872-b41b-8432b0a90c20%40googlegroups.com >>>> <https://groups.google.com/d/msgid/sympy/31c4c890-02c3-4872-b41b-8432b0a90c20%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "sympy" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/sympy. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sympy/acf11913-bf9b-4ae6-ba6d-e8f3f5001524%40googlegroups.com >> <https://groups.google.com/d/msgid/sympy/acf11913-bf9b-4ae6-ba6d-e8f3f5001524%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/CAP7f1AjTOU4vqnK_ySE5PyY7pDNfCCFwOpX7JB2WifBar2VKAQ%40mail.gmail.com > <https://groups.google.com/d/msgid/sympy/CAP7f1AjTOU4vqnK_ySE5PyY7pDNfCCFwOpX7JB2WifBar2VKAQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAFW_KCTF1ea%2Be76R-M%3Dx13S4r4%3DGhg8TVPRLmQtC6J9yv4UZ2w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
