def _cmp(self, other):
        """
        Comparator function for two :class:`~pywbem.CIMClassName` objects.

        The comparison is based on their public attributes, in descending
        precedence:

        * `host`
        * `namespace`
        * `classname`

        The comparison takes into account any case insensitivities described
        for these attributes.
        """
        if self is other:
            return 0
        try:
            assert isinstance(other, CIMClassName)
        except AssertionError:
            raise TypeError(
                _format("other must be CIMClassName, but is: {0}",
                        type(other)))
        return (cmpname(self.host, other.host) or
                cmpname(self.namespace, other.namespace) or
                cmpname(self.classname, other.classname))
def _cmp ( self , other ) : if self is other : return 0 try : assert isinstance ( other , CIMClassName ) except AssertionError : raise TypeError ( _format ( "other must be CIMClassName, but is: {0}" , type ( other ) ) ) return ( cmpname ( self . host , other . host ) or cmpname ( self . namespace , other . namespace ) or cmpname ( self . classname , other . classname ) )
Comparator function for two :class:`~pywbem.CIMClassName` objects.

        The comparison is based on their public attributes, in descending
        precedence:

        * `host`
        * `namespace`
        * `classname`

        The comparison takes into account any case insensitivities described
        for these attributes.