upiterbarg / mpmath

Automatically exported from code.google.com/p/mpmath
Other
0 stars 0 forks source link

Patch for new hash in Python 3.2 #203

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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