QString key = getArgStr( 0 );  self->pSock->tags().remove( key );  if( checkArgStr( 1 ) ) self->pSock->tags().set( key, cVariant( getArgStr( 1 ) ) ); else if( checkArgInt( 1 ) ) self->pSock->tags().set( key, cVariant( (int)getArgInt( 1 ) ) );
static PyObject* wpSocket_settag( wpSocket* self, PyObject* args ){	if( !self->pSock )		return PyFalse;	if( PyTuple_Size( args ) < 1 || !checkArgStr( 0 ) || ( !checkArgStr( 1 ) && !checkArgInt( 1 )  ) )	{		PyErr_BadArgument();		return NULL;	}	QString key = getArgStr( 0 );	self->pSock->tags().remove( key );	if( checkArgStr( 1 ) )		self->pSock->tags().set( key, cVariant( getArgStr( 1 ) ) );	else if( checkArgInt( 1 ) )		self->pSock->tags().set( key, cVariant( (int)getArgInt( 1 ) ) );	return PyTrue;}