Unable to look up custom object in Python dictionary with string matching __repr__ output
I made a hashable custom class to use as keys in a dictionary. I rewrote __repr__
to return some attributes combined in a string, the __hash__
to hash this string, and __eq__
to compare the __repr__
string of each object.