Comment #3 on issue 1973 by [email protected]: hash(Integer) should
return the int
http://code.google.com/p/sympy/issues/detail?id=1973
+1 on making the change - once the failures are fixed.
The last one is because the Adds have their args in a different order. The
simplest test case I could find is:
In [31]: 2*x**-1 + 2*x**-2 == 2*x**-2 + 2*x**-1
Out[31]: False
Note that we have:
In [33]: hash(2*x**-1)
Out[33]: -1910839799
In [34]: hash(2*x**-2)
Out[34]: -1910839799
so the cause of the weirdness is obviously the hash collision.
--
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.