https://dbader.org/blog/python-mystery-dict-expression
class One:
def __eq__(self, other):
print("[One] Comparing with {} ({})".format(other, type(other)))
if type(other) is int and other == 1:
return True
return False