Main purpose of __repr__ in python
Difference between __str__ and __repr__?
Python __repr__ for numbers? What is the purpose of __name__? Purpose of Python's __repr__ Why doesn't this __repr__ function return a string? What does !r do in str() and repr()? When __repr__() is called? Python - Understanding __repr__ Possible to change a function's repr in python? Exception repr type: what does it means? Why is __repr__ called in the code below? How can I return a list in __repr__ function? Python repr function problem __repr__ for an attribute that can be a string or None? Purpose of 'if __name__ == "__main__":' When is the output of repr useful? What is the purpose of using `-m`? What is the purpose of this code Query on __repr__ method of a class in python Access class variables with __repr__() The difference between __str__ and __repr__? Python __repr__ and None python __repr__ What is the purpose of __str__ and __repr__? Python object.__repr__(self) should be an expression? How to make __repr__ to return unicode string Can a python module have a __repr__? Which is a better __repr__ for a custom Python class? Python: how can I get an object's address in the __repr__ method? How to use __repr__ to create new object from it?