class A():
def __init__(self,x):
self.x = x
def __repr__(self):
return self.x
For example, if I have a statement like A("one"), the output is one. Therefore, can I assume that repr is invoked every time when I create a new instance of the class?