code: def _cmp(self, other):
          
          if self is other:
              return 0
          try:
              assert isinstance(other, CIMClass)
          except AssertionError:
              raise TypeError(
                  _format("other must be CIMClass, but is: {0}", type(other)))
          return (cmpname(self.classname, other.classname) or
                  cmpname(self.superclass, other.superclass) or
                  cmpdict(self.qualifiers, other.qualifiers) or
                  cmpdict(self.properties, other.properties) or
                  cmpdict(self.methods, other.methods) or
                  cmpitem(self.path, other.path))
docs: Comparator function for two :class:`~pywbem.CIMClass` objects.
  
          The comparison is based on their public attributes, in descending
          precedence:
  
          * `classname`
          * `superclass`
          * `qualifiers`
          * `properties`
          * `methods`
          * `path`
  
          The comparison takes into account any case insensitivities described
          for these attributes.