Message 101417 - Python tracker (original) (raw)
Updated patch:
put hash parameters into pyport.h, to avoid repetition; make them available to Python code via a private attribute sys._hash_info.
use a modulus of 261-1 on systems where SIZEOF_LONG >= 8, and a modulus of 231 - 1 otherwise.
remove _invmod from fractions module. It's faster (and easier) to use 3-argument pow to compute inverses modulo a prime.
add a few more tests.