Comment #2 on issue 1547 by [email protected]: Integer class problems in functions 'abs', 'mod'/'rmod'.
http://code.google.com/p/sympy/issues/detail?id=1547

Since, as I understand it, there is only one of any Integer, this can't be fixed as it currently stands:

a=Integer(3)
b=Integer(3)
a.p=4
a
4
b
4
x + 3
x + 4
a.p = 3
x + 3  # cached so...
x + 4
y + 3
y + 3

The mod issue is fixed:

a%3
1
type(_)
<class 'sympy.core.numbers.One'>

I'm not sure about using self.func or self.__class__ (someone else would have to comment, but I don't think that would be too hard to fix and should be done for Number, Float, Integer, Rational as appropriate).

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


Reply via email to