Re: [sympy] Stop long-running function

2015-02-21 Thread Paul Royik
I see. On Saturday, February 21, 2015 at 4:45:49 PM UTC+2, Joachim Durchholz wrote: > > Am 21.02.2015 um 11:32 schrieb Paul Royik: > > So, this feature is closed? > > We'd really like to have that, we're just not sure how to implement it. > -- You received this message because you are subscri

Re: [sympy] Stop long-running function

2015-02-21 Thread Joachim Durchholz
Am 21.02.2015 um 11:32 schrieb Paul Royik: So, this feature is closed? We'd really like to have that, we're just not sure how to implement it. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails f

Re: [sympy] Stop long-running function

2015-02-21 Thread Paul Royik
So, this feature is closed? On Saturday, February 21, 2015 at 2:00:57 AM UTC+2, Aaron Meurer wrote: > > See also https://github.com/sympy/sympy/pull/8297 and > https://github.com/sympy/sympy/pull/8295. > > Aaron Meurer > > On Fri, Feb 20, 2015 at 5:59 PM, Sudhanshu Mishra > wrote: > > Perhaps

Re: [sympy] Stop long-running function

2015-02-21 Thread Joachim Durchholz
Am 21.02.2015 um 01:00 schrieb Aaron Meurer: See also https://github.com/sympy/sympy/pull/8297 and https://github.com/sympy/sympy/pull/8295. Cooperative checking, while intrusive, is the least fragile option IMNSHO. -- You received this message because you are subscribed to the Google Groups

Re: [sympy] Stop long-running function

2015-02-21 Thread Joachim Durchholz
Am 21.02.2015 um 00:37 schrieb Jason Moore: Maybe this: http://stackoverflow.com/questions/366682/how-to-limit-execution-time-of-a-function-call-in-python The caveat is important: "Not sure how cross-platform that is." AFAIK signals and alarms do not work under Windows. You can move the functi

Re: [sympy] Stop long-running function

2015-02-20 Thread Sudhanshu Mishra
Great! I never saw this PR. There's not much discussion about it there. On Sat, Feb 21, 2015 at 5:30 AM, Aaron Meurer wrote: > See also https://github.com/sympy/sympy/pull/8297 and > https://github.com/sympy/sympy/pull/8295. > > Aaron Meurer > > On Fri, Feb 20, 2015 at 5:59 PM, Sudhanshu Mishra

Re: [sympy] Stop long-running function

2015-02-20 Thread Aaron Meurer
See also https://github.com/sympy/sympy/pull/8297 and https://github.com/sympy/sympy/pull/8295. Aaron Meurer On Fri, Feb 20, 2015 at 5:59 PM, Sudhanshu Mishra wrote: > Perhaps this would be a good addition to functions like `solve`, `simplify`, > `integrate`, etc. A parameter, maybe `max_time`,

Re: [sympy] Stop long-running function

2015-02-20 Thread Sudhanshu Mishra
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 wrote: > Maybe this: > http://stac

Re: [sympy] Stop long-running function

2015-02-20 Thread Jason Moore
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 wrote: > I mean in program, not in command window. > > On Saturday, February 21, 2015 at 1:08:10 AM

Re: [sympy] Stop long-running function

2015-02-20 Thread Paul Royik
I mean in program, not in command window. On Saturday, February 21, 2015 at 1:08:10 AM UTC+2, Jason Moore wrote: > > -C will terminate a running command. > > > Jason > moorepants.info > +01 530-601-9791 > > On Fri, Feb 20, 2015 at 2:53 PM, Paul Royik > wrote: > >> Is there any way to stop long ru

Re: [sympy] Stop long-running function

2015-02-20 Thread Jason Moore
-C will terminate a running command. Jason moorepants.info +01 530-601-9791 On Fri, Feb 20, 2015 at 2:53 PM, Paul Royik 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 receiv

[sympy] Stop long-running function

2015-02-20 Thread Paul Royik
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, s