[Python-Dev] Hash to longs, and Decimal
Facundo Batista
facundobatista at gmail.com
Mon Sep 17 22:58:44 CEST 2007
Hi everybody!
In the Tracker Issue...
http://bugs.python.org/issue1772851
... Mark Dickinson came with a patch that alters in a very corner case
how the hash is calculated to a long integer.
This allows changes in Decimal that lead to a better hashing behaviour
for big, big, really big numbers.
The patch applies cleanly, all the tests pass ok (Mark also provided
more tests for the hash function).
I won't commit this right now; I'll delay the change for a couple of
days in case somebody wants to take a look at it.
Thanks!
--
. Facundo
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
More information about the Python-Dev
mailing list