Hashing and Equality in Python

Don’t override __hash__ and __eq__ to force objects to hashable. Use immutable objects instead. Read more

Similar