Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium NeedsReview smichr

New issue 2976 by [email protected]: Tuple can hold bool but subs fails
http://code.google.com/p/sympy/issues/detail?id=2976

issue 2070 raises the issue that all Basic args should be Basic. Here is a reason why;

Tuple(x,True).subs(x,y)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy\core\basic.py", line 761, in subs
    return self._subs_old_new(old, new)
  File "sympy\core\cache.py", line 91, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy\core\basic.py", line 770, in _subs_old_new
    return self._eval_subs(old, new)
  File "sympy\core\basic.py", line 776, in _eval_subs
    return self.func(*[arg._eval_subs(old, new) for arg in self.args])
AttributeError: 'bool' object has no attribute '_eval_subs'

This is handled in https://github.com/sympy/sympy/pull/690 's changes to subs.

--
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