return PyUnicode_FromWideChar((Py_UNICODE*)value.toString().ucs2(), value.toString().length());
return PyUnicode_FromWideChar((unsigned short*)value.toString().ucs2(), value.toString().length());
static PyObject* wpItem_gettag( wpItem* self, PyObject* args ){	if( !self->pItem || self->pItem->free )	{		Py_INCREF( Py_None );		return Py_None;	}	if( PyTuple_Size( args ) < 1 || !checkArgStr( 0 ) )	{		PyErr_BadArgument();		return NULL;	}	QString key = PyString_AsString( PyTuple_GetItem( args, 0 ) );	cVariant value = self->pItem->getTag( key );	if( value.type() == cVariant::String )		return PyUnicode_FromWideChar((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_INCREF( Py_None );	return Py_None;}