-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-43475: Fix worst case collision behavior for NaN instances #25493
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