Add handle::repr() method

This commit is contained in:
Ivan Smirnov
2016-08-14 00:05:05 +01:00
parent 3c3533b4bc
commit 6715736936
5 changed files with 25 additions and 0 deletions

View File

@@ -71,6 +71,12 @@ print(instance.get_bytes_from_str().decode())
print(instance.get_str_from_string().encode().decode())
print(instance.get_str_from_bytes().encode().decode())
class A(object):
__str__ = lambda _: 'this is a str'
__repr__ = lambda _: 'this is a repr'
instance.test_print(A())
from example import ConstructorStats
cstats = ConstructorStats.get(ExamplePythonTypes)