return QString::fromUtf8( PyString_AsString( object ) ); Py_DECREF(object);
return QString::fromUtf8( PyString_AsString( utf8 ) ); Py_DECREF(utf8);
inline QString Python2QString( PyObject* object ){	if ( !object )	{		return QString::null;	}	else if ( PyUnicode_Check( object ) )	{#if defined(Py_UNICODE_WIDE)		PyObject *utf8 = PyUnicode_AsUTF8String( object );		return QString::fromUtf8( PyString_AsString( object ) );		Py_DECREF(object);#else		return QString::fromUcs2( ( ushort * ) PyUnicode_AS_UNICODE( object ) );#endif	}	else if ( PyString_Check( object ) )	{		return QString::fromLocal8Bit( PyString_AsString( object ) );	}	else if ( PyInt_Check( object ) )	{		return QString::number( PyInt_AsLong( object ) );	}	else if ( PyFloat_Check( object ) )	{		return QString::number( PyFloat_AsDouble( object ) );	}	else	{		return QString::null;	}}