QString key = getArgStr( 0 ); cVariant value = self->pSock->tags().get( key );
QString key = PyString_AsString( PyTuple_GetItem( args, 0 ) ); cVariant value = self->pSock->tags().get(key);
static PyObject* wpSocket_gettag( wpSocket* self, PyObject* args ){	if( !self->pSock )	{		Py_INCREF( Py_None );		return Py_None;	}	if( PyTuple_Size( args ) < 1 || !checkArgStr( 0 ) )	{		PyErr_BadArgument();		return NULL;	}	QString key = getArgStr( 0 );	cVariant value = self->pSock->tags().get( key );	if( value.type() == cVariant::String )		return PyString_FromString( value.asString().latin1() );	else if( value.type() == cVariant::Int )		return PyInt_FromLong( value.asInt() );	Py_INCREF( Py_None );	return Py_None;}