[Python-Dev] Locked-in defect? 32-bit hash values on 64-bit builds
"Martin v. Löwis"
martin at v.loewis.de
Sun Oct 17 20:10:21 CEST 2010
> ISTM, the use of 64-bit builds is growing in popularity. It was be a bummer
> to have a locked-in an effective size limit for dictionaries and sets
> because the API only supports 32-bit hash values.
If the ABI is frozen with 3.2, it would still be possible to introduce
"wide" hashes - it just will have to be a compatible change.
> The thread seems to show agreement that the hash values should be
> Py_ssize_t but the chance to fix it will be lost unless core devs get
> more time to work on the problem or unless the ABI freeze is deferred.
I agree in principle, also, but would like to see some analysis on
existing third-party modules.
Regards,
Martin
More information about the Python-Dev
mailing list