Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2564 by brad.froehle: Integer.__rmod__ assumes other is Integer
http://code.google.com/p/sympy/issues/detail?id=2564

There is a bug in the implementation of Integer.__rmod__, as it assumes other is also an Integer yielding incorrect results:

from sympy import *
Rational(7,5) % 1
2/5
Rational(7,5) % Integer(1)
0
Rational(7,5).__mod__(Integer(1))
2/5
Integer(1).__rmod__(Rational(7,5))
0


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