bind: test __repr__

This commit is contained in:
Sebastien Binet 2015-07-29 12:37:32 +02:00
parent 7d90f62f3c
commit 59a16dec60
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ print hi.Person.__doc__
print "--- p = hi.Person()..."
p = hi.Person()
print dir(p)
print "--- p:", p
print "--- p.Name:", p.Name
print "--- p.Age:",p.Age

View File

@ -80,6 +80,7 @@ Person is a simple struct
--- p = hi.Person()...
['Age', 'Greet', 'Name', 'String', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']
--- p: hi.Person{Name="", Age=0}
--- p.Name:
--- p.Age: 0
--- doc(hi.Greet):