From b7f593d99e2c02ddf8bde439df43b98c3d1caa0b Mon Sep 17 00:00:00 2001 From: Paulo Alcantara Date: Wed, 19 Oct 2011 16:30:36 -0300 Subject: Fix bug 1022 - "RuntimeError: maximum recursion depth exceeded while getting the str of an object" Reviewer: Hugo Parente Lima Marcelo Lira Luciano Wolf Signed-off-by: Paulo Alcantara --- PySide/QtScript/typesystem_script.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'PySide/QtScript/typesystem_script.xml') diff --git a/PySide/QtScript/typesystem_script.xml b/PySide/QtScript/typesystem_script.xml index 4dc3930cf..af2f198c5 100644 --- a/PySide/QtScript/typesystem_script.xml +++ b/PySide/QtScript/typesystem_script.xml @@ -66,7 +66,8 @@ QString format = QString().sprintf("%s(\"%s\")", ((PyObject*)%PYSELF)->ob_type->tp_name, qPrintable(%CPPSELF.toString())); %PYARG_0 = Shiboken::String::fromCString(qPrintable(format)); } else { - %PYARG_0 = PyObject_Str((PyObject*)%PYSELF); + %PYARG_0 = Shiboken::String::fromCString( + ((PyObject* )%PYSELF)->ob_type->tp_name); } -- cgit v1.2.3