upiterbarg/mpmath

Patch for new hash in Python 3.2

GoogleCodeExporter opened this issue · 2 comments

I've attached a patch that updates the hashing algorithm to match the new 
algorithm in Python 3.2. I haven't updated the hash for mpq yet.

Fredrik, can you review the proposed patch?



Original issue reported on code.google.com by casevh on 12 Jan 2011 at 7:24

Attachments:

Looks good. Perhaps there should be some more tests, although it's probably 
fine that the existing ones for small numbers pass.

Original comment by fredrik....@gmail.com on 13 Jan 2011 at 5:08

I committed a set of changes for mpf, mpq, and added a couple of tests for 
large and small values.

Original comment by casevh on 16 Jan 2011 at 9:43

  • Changed state: Fixed