Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 2621 by [email protected]: sympy hashes numbers differently
from python
http://code.google.com/p/sympy/issues/detail?id=2621
hash(1)
1
hash(S(1))
-237126060543571952
1 == S(1)
True
1 in set([S(1)])
False
Sympy should follow the rule that if a == b than hash(a) == hash(b). I
noticed that mpmath does this correctly.
--
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.