def __cmp__(self, dict): if isinstance(dict, OrderedDict): ret=cmp(self.__order, dict.__order) if not ret: ret=UserDict.__cmp__(self, dict) return ret else: return UserDict.__cmp__(self, dict)
def __cmp__(self, dict): self.__populate() return UserDict.__cmp__( self, dict )
def __cmp__(self, other): if not isinstance(other, NormalizedDict): other = NormalizedDict(other) return UserDict.__cmp__(self, other)
def __cmp__(self, other): if (isinstance(other, (Mapping, UserDict)) and not isinstance(other, NormalizedDict)): other = NormalizedDict(other) return UserDict.__cmp__(self, other)