Comment #12 on issue 281 by asmeurer: Infinity is a subclass of Rational http://code.google.com/p/sympy/issues/detail?id=281
Well, this needs to be done. For every piece of code that assumed oo, -oo, or nan is a Rational, there are two pieces of code that assume Rational does not include -oo, oo, or nan.
I suspect the problem is that most of the behavior of oo and nan are simply caused by this implementation detail (e.g., things like (x/oo).as_numer_denom()), but nonetheless much of it is tested. The behavior of these objects should be specifically spelled out in places like Mul.flatten (or, preferably, in the classes themselves, if we had that kind of architecture).
For the test, does it matter if caching is on or off (I realize this may be hard to test, as running the full test suite with the cache off takes a while)? Otherwise, you can bisect what is causing the problem by running test() interactively and seeing what file causes the change.
-- 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.
