Comment #1 on issue 3655 by [email protected]: nan in compute_innermost
http://code.google.com/p/sympy/issues/detail?id=3655
The issue is that the sort key on nan is wrong:
In [20]: sorted([S.NaN, 0], key=default_sort_key)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-20-c0be3a5a8cf0> in <module>()
----> 1 sorted([S.NaN, 0], key=default_sort_key)
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/numbers.pyc in
__lt__(self, other)
1644 elif isinstance(other, Integer):
1645 return (self.p < other.p)
-> 1646 return Rational.__lt__(self, other)
1647
1648 def __ge__(self, other):
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/numbers.pyc in
__lt__(self, other)
1348 return bool(mlib.mpf_lt(
1349 self._as_mpf_val(other._prec), other._mpf_))
-> 1350 return bool(self.p*other.q < self.q*other.p)
1351 return Expr.__lt__(self, other)
1352
AttributeError: 'NaN' object has no attribute 'q'
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.