Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 2336 by [email protected]: unevaluated Limit uses non-Basic arg
http://code.google.com/p/sympy/issues/detail?id=2336

The direction of the limit is a string '+' or '-' which causes problems with subs:

    h[18] >>> _.subs(x,y)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "sympy\core\basic.py", line 958, in subs
        return self._subs_old_new(old, new)
      File "sympy\core\cache.py", line 101, in wrapper
        func_cache_it_cache[k] = r = func(*args, **kw_args)
      File "sympy\core\basic.py", line 967, in _subs_old_new
        return self._eval_subs(old, new)
      File "sympy\core\basic.py", line 973, in _eval_subs
        return self.func(*[arg._eval_subs(old, new) for arg in self.args])
    AttributeError: 'str' object has no attribute '_eval_subs'

The short term fix is to make this +/-1. In the long term when limits can be evaluated in any direction (other than real) then a new Direction object will be needed.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.

Reply via email to