if( PyString_Check( object ) ) { self->pChar->removeTag( key ); self->pChar->setTag( key, cVariant( PyString_AsString( object ) ) ); } else if( PyInt_Check( object ) ) { self->pChar->removeTag( key ); self->pChar->setTag( key, cVariant( (int)PyInt_AsLong( object ) ) ); } else if( PyFloat_Check( object ) ) { self->pChar->removeTag( key ); self->pChar->setTag( key, cVariant( (double)PyFloat_AsDouble( object ) ) );
if (PyString_Check(object)) { self->pChar->setTag(key, cVariant(PyString_AsString(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)));
static PyObject* wpChar_settag( wpChar* self, PyObject* args ){	if( self->pChar->free )		return PyFalse;	char *key;	PyObject *object;	if( !PyArg_ParseTuple( args, "sO:char.settag( name, value )", &key, &object ) )		return 0;	if( PyString_Check( object ) )	{		self->pChar->removeTag( key );		self->pChar->setTag( key, cVariant( PyString_AsString( object ) ) );	}	else if( PyInt_Check( object ) )	{		self->pChar->removeTag( key );		self->pChar->setTag( key, cVariant( (int)PyInt_AsLong( object ) ) );	}	else if( PyFloat_Check( object ) )	{		self->pChar->removeTag( key );		self->pChar->setTag( key, cVariant( (double)PyFloat_AsDouble( object ) ) );	}	return PyTrue;}