Author jdemeyer
Recipients eric.smith, jdemeyer, mark.dickinson, rhettinger, sir-sigurd, tim.peters
Date 2018-09-21.20:07:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537560432.86.0.956365154283.issue34751@psf.upfronthosting.co.za>
In-reply-to
Content
> 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
History
Date User Action Args
2018-09-21 20:07:12jdemeyersetrecipients: + jdemeyer, tim.peters, rhettinger, mark.dickinson, eric.smith, sir-sigurd
2018-09-21 20:07:12jdemeyersetmessageid: <1537560432.86.0.956365154283.issue34751@psf.upfronthosting.co.za>
2018-09-21 20:07:12jdemeyerlinkissue34751 messages
2018-09-21 20:07:12jdemeyercreate