From f9baba1bc99c84288b01af6547ce596ac1fdc3a6 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 16 Mar 2008 19:17:02 +0000 Subject: [PATCH] Add __repr__ to CppClass --- pybindgen/cppclass.py | 3 +++ pybindgen/overloading.py | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pybindgen/cppclass.py b/pybindgen/cppclass.py index 445402e..9891c0f 100644 --- a/pybindgen/cppclass.py +++ b/pybindgen/cppclass.py @@ -489,6 +489,9 @@ class CppClass(object): except ValueError: pass + def __repr__(self): + return "" % self.full_name + def write_incref(self, code_block, obj_expr): """ Write code to increase the reference code of an object of this diff --git a/pybindgen/overloading.py b/pybindgen/overloading.py index c72b085..b1a08a4 100644 --- a/pybindgen/overloading.py +++ b/pybindgen/overloading.py @@ -1,8 +1,7 @@ """ C wrapper wrapper """ -from typehandlers.base import ForwardWrapperBase, NotSupportedError, CodegenErrorBase -from typehandlers import codesink +from typehandlers.base import ForwardWrapperBase, NotSupportedError import utils def isiterable(obj):