Add __repr__ to CppClass

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-03-16 19:17:02 +00:00
1 parent eee739fcdc
commit f9baba1bc9
2 files changed
+4 -2

No files matched your search

+3
View File
@@ -489,6 +489,9 @@ class CppClass(object):
except ValueError:
pass
def __repr__(self):
return "<pybindgen.CppClass '%s'>" % self.full_name
def write_incref(self, code_block, obj_expr):
"""
Write code to increase the reference code of an object of this