code: 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))
docs: 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.