Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed
Description
The pagehttps://docs.python.org/3/faq/design.html#why-are-there-separate-tuple-and-list-data-types says at the end of its last paragraph:
Onlyimmutable elements can be used asdictionary keys...
Which is not quite correct, since dictionaries only require its keys to behashable (seehttps://docs.python.org/3/library/stdtypes.html#mapping-types-dict). Immutability doesn't necessarily imply hashability.
Thanks.
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
Todo