Glossary: Data Structures and Algorithms
Hashable
Also written: unhashable
Able to be used as a dict key or set item because its hash never changes: strings, numbers and tuples of hashable items. Lists are unhashable because they can change.
Glossary: Data Structures and Algorithms
Also written: unhashable
Able to be used as a dict key or set item because its hash never changes: strings, numbers and tuples of hashable items. Lists are unhashable because they can change.