Vladimir

44%
Flag icon
If isinstance(obj, Hashable) returns True, that only means that the class of obj implements or inherits __hash__. But if obj is a tuple containing unhashable items, then obj is not hashable, despite the positive result of the isinstance check.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview