Message326029
> FWIW, the current algorithm also has some advantages that we don't want to lose. In particular, the combination of the int hash and tuple hash are good at producing distinct values for non-negative numbers:
>>> from itertools import product
>>> len(set(map(hash, product(range(100), repeat=4))))
100000000
FWIW: the same is true for my new hash function |
|
Date |
User |
Action |
Args |
2018-09-21 20:07:12 | jdemeyer | set | recipients:
+ jdemeyer, tim.peters, rhettinger, mark.dickinson, eric.smith, sir-sigurd |
2018-09-21 20:07:12 | jdemeyer | set | messageid: <1537560432.86.0.956365154283.issue34751@psf.upfronthosting.co.za> |
2018-09-21 20:07:12 | jdemeyer | link | issue34751 messages |
2018-09-21 20:07:12 | jdemeyer | create | |
|