-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
gh-77753: Add example for values that compare equal in stdtypes #98497
Conversation
@@ -4370,8 +4370,8 @@ type, the :dfn:`dictionary`. (For other containers see the built-in | |||
A dictionary's keys are *almost* arbitrary values. Values that are not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this "almost arbitrary values" wording, since several very common types (lists, dicts, sets) can't be used as dict keys. No need to change that in this PR though.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Thanks @slateny for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
GH-98693 is a backport of this pull request to the 3.11 branch. |
GH-98694 is a backport of this pull request to the 3.10 branch. |
…pythonGH-98497) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 0ca6a4d) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
…pythonGH-98497) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 0ca6a4d) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
https://docs.python.org/dev/library/stdtypes.html#mapping-types-dict