Vladimir

9%
Flag icon
Numeric types and flat immutable types str and bytes are all hashable. Container types are hashable if they are immutable and all contained objects are also hashable. A frozenset is always hashable, because every element it contains must be hashable by definition. A tuple is hashable only if all its items are hashable.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview