return PyUnicode_FromUnicode( ( Py_UNICODE * ) value.toString().ucs2(), value.toString().length() );
return QString2Python(value.toString());
static PyObject* wpChar_gettag( wpChar* self, PyObject* args ){	if ( !self->pChar || self->pChar->free )	{		Py_RETURN_NONE;	}	if ( PyTuple_Size( args ) < 1 || !checkArgStr( 0 ) )	{		PyErr_BadArgument();		return NULL;	}	QString key = getArgStr( 0 );	cVariant value = self->pChar->getTag( key );	if ( value.type() == cVariant::String )		return PyUnicode_FromUnicode( ( Py_UNICODE * ) value.toString().ucs2(), value.toString().length() );	else if ( value.type() == cVariant::Int )		return PyInt_FromLong( value.asInt() );	else if ( value.type() == cVariant::Double )		return PyFloat_FromDouble( value.asDouble() );	Py_RETURN_NONE;}