kuroko/test/testStrReprOrdering.krk

13 lines
197 B
Python
Raw Normal View History

class Foo(object):
def __str__(self):
return '<str>'
def __repr__(self):
return '<repr>'
print('Foo:',Foo())
print(str(Foo()))
print(repr(Foo()))
print(Foo().__str__)
print(Foo().__repr__)