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:
File "hanging.py", line 5, in <module>
res = x.subs(x, newt)
File
"/Users/mb312/.virtualenvs/sympy-0.7.1/lib/python2.6/site-packages/sympy/core/basic.py",
line 752, in subs
return self._subs_old_new(old, new)
File
"/Users/mb312/.virtualenvs/sympy-0.7.1/lib/python2.6/site-packages/sympy/core/cache.py",
line 101, in wrapper
func_cache_it_cache[k] = r = func(*args, **kw_args)
File
"/Users/mb312/.virtualenvs/sympy-0.7.1/lib/python2.6/site-packages/sympy/core/basic.py",
line 760, in _subs_old_new
new = sympify(new)
File
"/Users/mb312/.virtualenvs/sympy-0.7.1/lib/python2.6/site-packages/sympy/core/sympify.py",
line 134, in sympify
rational=rational) for x in a])
File
"/Users/mb312/.virtualenvs/sympy-0.7.1/lib/python2.6/site-packages/sympy/matrices/matrices.py",
line 62, in __getitem__
return Symbol(component_name)
File
"/Users/mb312/.virtualenvs/sympy-0.7.1/lib/python2.6/site-packages/sympy/core/symbol.py",
line 54, in __new__
return Symbol.__xnew_cached_(cls, name, commutative, **assumptions)
File
"/Users/mb312/.virtualenvs/sympy-0.7.1/lib/python2.6/site-packages/sympy/core/cache.py",
line 101, in wrapper
func_cache_it_cache[k] = r = func(*args, **kw_args)
File
"/Users/mb312/.virtualenvs/sympy-0.7.1/lib/python2.6/site-packages/sympy/core/symbol.py",
line 58, in __new_stage2__
obj = Expr.__new__(cls, **assumptions)
File
"/Users/mb312/.virtualenvs/sympy-0.7.1/lib/python2.6/site-packages/sympy/core/basic.py",
line 83, in __new__
obj = object.__new__(cls)
KeyboardInterrupt
I got a little scared at the point. Can I help with the debugging?
Best,
Matthew
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
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/sympy?hl=en.