Re: [sympy] 0.7.1 hanging on sub of DeferredVector

2011-07-26 Thread Matthew Brett
Hi, On Tue, Jul 26, 2011 at 6:48 PM, Aaron Meurer wrote: > On Tue, Jul 26, 2011 at 5:25 PM, Matthew Brett > wrote: >> Hi, >> >> On Mon, Jul 25, 2011 at 8:49 PM, Aaron Meurer wrote: >>> I think the proper fix is to either make DeferredVector an Expr object >>> or give it a _sympy_ method so tha

Re: [sympy] 0.7.1 hanging on sub of DeferredVector

2011-07-26 Thread Aaron Meurer
On Tue, Jul 26, 2011 at 5:25 PM, Matthew Brett wrote: > Hi, > > On Mon, Jul 25, 2011 at 8:49 PM, Aaron Meurer wrote: >> I think the proper fix is to either make DeferredVector an Expr object >> or give it a _sympy_ method so that sympify() knows how to convert it >> without resorting to trying to

Re: [sympy] 0.7.1 hanging on sub of DeferredVector

2011-07-26 Thread Matthew Brett
Hi, On Mon, Jul 25, 2011 at 8:49 PM, Aaron Meurer wrote: > I think the proper fix is to either make DeferredVector an Expr object > or give it a _sympy_ method so that sympify() knows how to convert it > without resorting to trying to iterate over it. > > Actually, I see now that DeferredVector i

Re: [sympy] 0.7.1 hanging on sub of DeferredVector

2011-07-25 Thread Aaron Meurer
I think the proper fix is to either make DeferredVector an Expr object or give it a _sympy_ method so that sympify() knows how to convert it without resorting to trying to iterate over it. Actually, I see now that DeferredVector is a generator of Symbol objects. So expr.subs(x, newt) makes about

Re: [sympy] 0.7.1 hanging on sub of DeferredVector

2011-07-25 Thread Chris Smith
On Mon, Jul 25, 2011 at 7:46 PM, Aaron Meurer wrote: > Tracking it down was easy.  The thing I'm not sure about is how to > properly fix this. Any objects that iterates infinitely would have > this problem. > I can't look into this too deeply now, but is there an exclude flag on the iterable() fu

Re: [sympy] 0.7.1 hanging on sub of DeferredVector

2011-07-25 Thread Aaron Meurer
Tracking it down was easy. The thing I'm not sure about is how to properly fix this. Any objects that iterates infinitely would have this problem. Aaron Meurer On Mon, Jul 25, 2011 at 6:08 PM, Matthew Brett wrote: > Hi, > > On Tue, Jul 26, 2011 at 1:02 AM, Aaron Meurer wrote: >> I bisected thi

Re: [sympy] 0.7.1 hanging on sub of DeferredVector

2011-07-25 Thread Matthew Brett
Hi, On Tue, Jul 26, 2011 at 1:02 AM, Aaron Meurer wrote: > I bisected this to > > commit f95d0146f59fd9160fe867561fb6620c3a035ad1 > Author: Chris Smith > Date:   Wed Jun 15 22:15:17 2011 -0500 > >    use ordered_iter and iterable > >    This reverts commit 654cb9bc6d3bdab45d45a8ec2b41df358b5aa44

Re: [sympy] 0.7.1 hanging on sub of DeferredVector

2011-07-25 Thread Aaron Meurer
I bisected this to commit f95d0146f59fd9160fe867561fb6620c3a035ad1 Author: Chris Smith Date: Wed Jun 15 22:15:17 2011 -0500 use ordered_iter and iterable This reverts commit 654cb9bc6d3bdab45d45a8ec2b41df358b5aa440 and adds a few more use cases. The problem is that sympify(newt)

[sympy] 0.7.1 hanging on sub of DeferredVector

2011-07-25 Thread Matthew Brett
Hi, On my snow leopard machine: from sympy import Symbol, DeferredVector x = Symbol('x') newt = DeferredVector("t") res = x.subs(x, newt) results in a long hang. On 0.7.0 and 0.6.6 it's very quick. Ctrl-C on the 0.7.1 branch running the code above (as ``hanging.py``) ends with a traceback: