bpo-43475: Fix worst case collision behavior for NaN instances#25493
bpo-43475: Fix worst case collision behavior for NaN instances#25493rhettinger merged 6 commits intopython:masterfrom
Conversation
|
🤖 New build scheduled with the buildbot fleet by @rhettinger for commit 056a4f7 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
|
🤖 New build scheduled with the buildbot fleet by @rhettinger for commit 9f3f9e9 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
|
Is my understanding right, that this PR would break the following code: I.e. when somebody tries to wrap Float and change With this PR, the chances are high, that the result will be Until now, it was clear - don't put nans into set/dict because the default "="-relation for floats isn't an equivalence relation. People worked around this by redefining the "="-relation and didn't so for hash function because until now "a,b - nans => hash(a)=hash(b)" was given. I think the intuitive behavior for |
https://bugs.python.org/issue43475