The Python builtin repr()
doesn't seem to take into account the object's __repr__
class Foo(object):
__repr__ = lambda self: "class"
def __init__(self, a):
self.__repr__ = lambda: "object"
foo = Foo('object')
print foo # "class"