Message326016
I should also make it clear that the collision hash((1,0,0)) == hash((1,-2,-2)) that I reported is due to the algorithm, it's not due to some bad luck that 2 numbers happen to be the same. There are also many more similar hash collisions for tuples (all involving negative numbers) due to the same underlying mathematical reason.
I still don't understand why you don't consider it a problem. It may be a tiny problem, not really affecting the correct functioning of CPython. But, if we can fix this tiny problem, why shouldn't we? |
|
Date |
User |
Action |
Args |
2018-09-21 18:46:14 | jdemeyer | set | recipients:
+ jdemeyer, tim.peters, rhettinger, mark.dickinson, eric.smith, sir-sigurd |
2018-09-21 18:46:14 | jdemeyer | set | messageid: <1537555574.71.0.956365154283.issue34751@psf.upfronthosting.co.za> |
2018-09-21 18:46:14 | jdemeyer | link | issue34751 messages |
2018-09-21 18:46:14 | jdemeyer | create | |
|