else { PyErr_SetString( PyExc_TypeError, "You passed an unknown object type to char.settag." ); return 0; }
static PyObject* wpChar_settag( wpChar* self, PyObject* args ){	if ( self->pChar->free )		Py_RETURN_FALSE;	char* key;	PyObject* object;	if ( !PyArg_ParseTuple( args, "sO:char.settag( name, value )", &key, &object ) )		return 0;	if ( PyString_Check( object ) )	{		self->pChar->setTag( key, cVariant( PyString_AsString( object ) ) );	}	else if ( PyUnicode_Check( object ) )	{		self->pChar->setTag( key, cVariant( QString::fromUcs2( ( ushort * ) PyUnicode_AsUnicode( object ) ) ) );	}	else if ( PyInt_Check( object ) )	{		self->pChar->setTag( key, cVariant( ( int ) PyInt_AsLong( object ) ) );	}	else if ( PyFloat_Check( object ) )	{		self->pChar->setTag( key, cVariant( ( double ) PyFloat_AsDouble( object ) ) );	}	Py_RETURN_NONE;}