diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-10-15 19:01:58 -0300 |
---|---|---|
committer | renatofilho <renato.filho@openbossa.org> | 2010-10-15 19:12:24 -0300 |
commit | 9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1 (patch) | |
tree | 6a99d67a22e3754e164861faf82e555856e754ff /libshiboken | |
parent | b548f03130cdd2aa7bdcb4bf00f5da8240fc78ee (diff) | |
download | shiboken-9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1.tar.gz shiboken-9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1.tar.xz shiboken-9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1.zip |
Fixed namespace lookup during the class generation.
fixes bug #414.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken')
-rw-r--r-- | libshiboken/basewrapper.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp index 7f7b8da8..2c1129b2 100644 --- a/libshiboken/basewrapper.cpp +++ b/libshiboken/basewrapper.cpp @@ -576,7 +576,11 @@ void setErrorAboutWrongArguments(PyObject* args, const char* funcName, const cha for (int i = 0, max = PyTuple_GET_SIZE(args); i < max; ++i) { if (i) params += ", "; - params += PyTuple_GET_ITEM(args, i)->ob_type->tp_name; + PyObject* arg = PyTuple_GET_ITEM(args, i); + if (PyCObject_Check(arg)) + params += "pointer"; + else + params += arg->ob_type->tp_name; } } else { params = args->ob_type->tp_name; |