This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author crusaderky
Recipients crusaderky, steven.daprano
Date 2019-09-11.11:07:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568200027.62.0.334336589892.issue38105@roundup.psfhosted.org>
In-reply-to
Content
Of course, the chances that in real life a custom object will have hash == -2 are very small. Different story however is for the actual numbers -1 and -2:

In [2]: %timeit {-1, -3}                                                                                                                                                                                                        
64.2 ns ± 1.41 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)

In [3]: %timeit {-1, -2}                                                                                                                                                                                                        
238 ns ± 5.64 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
History
Date User Action Args
2019-09-11 11:07:07crusaderkysetrecipients: + crusaderky, steven.daprano
2019-09-11 11:07:07crusaderkysetmessageid: <1568200027.62.0.334336589892.issue38105@roundup.psfhosted.org>
2019-09-11 11:07:07crusaderkylinkissue38105 messages
2019-09-11 11:07:07crusaderkycreate