Vladimir

9%
Flag icon
User-defined types are hashable by default because their hash code is their id(), and the __eq__() method inherited from the object class simply compares the object IDs.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview