Closed Jaymon closed 2 years ago
So you've got a class:
class Foo(object): def __pout__(self): return "Foo pout"
When you print out the class you get some strange formatting:
>>> f = Foo() >>> print(f) Foo instance at 0x7f521bf1add0 < "Foo pout" >
I should make the formatting better if __pout__ just returns a string.
__pout__
So you've got a class:
When you print out the class you get some strange formatting:
I should make the formatting better if
__pout__
just returns a string.