How can printing an object result in different output than both str() and repr()?
Difference between __str__ and __repr__?
Python __repr__ for numbers? How can I use `str.format` directly as `__repr__`? Why doesn't this __repr__ function return a string? What does !r do in str() and repr()? When __repr__() is called? Not printing output ? python Possible to change a function's repr in python? Why is __repr__ called in the code below? Printing Python __str__ from an object Python repr function problem How can I return a list in __repr__ function? When is the output of repr useful? The difference between __str__ and __repr__? Query on __repr__ method of a class in python Access class variables with __repr__() Python Printing the String Result Why is output not printing a list? Python __repr__ and None Python - printing to more than one output python __repr__ What is the purpose of __str__ and __repr__? Can a python module have a __repr__? What do I need to return from __repr__ to have multiple lines when printing custom object wrapped in a pandas object Custom __str__ and __repr__ are not working Python: how can I get an object's address in the __repr__ method? How to use __repr__ to create new object from it? Python proper use of __str__ and __repr__ __str__ method not being called when printing printing output using object in python