(self, other)
>>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
        >>> d == OrderedDict(d)
        True
        >>> d == OrderedDict(((1, 3), (2, 1), (3, 2)))
        False
        >>> d == OrderedDict(((1, 0), (3, 2), (2, 1)))
        False
        >>> d == OrderedDict(((0, 3), (3, 2), (2, 1)))
        False
        >>> d == dict(d)
        False
        >>> d == False
        False
>>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
        >>> d == OrderedDict(d)
        True
        >>> d == OrderedDict(((1, 3), (2, 1), (3, 2)))
        False
        >>> d == OrderedDict(((1, 0), (3, 2), (2, 1)))
        False
        >>> d == OrderedDict(((0, 3), (3, 2), (2, 1)))
        False
        >>> d == dict(d)
        False
        >>> d == False
        False
>>> d = OrderedDict ((( 1 3 ) ( 3 2 ) ( 2 1 ))) >>> d == OrderedDict ( d ) True >>> d == OrderedDict ((( 1 3 ) ( 2 1 ) ( 3 2 ))) False >>> d == OrderedDict ((( 1 0 ) ( 3 2 ) ( 2 1 ))) False >>> d == OrderedDict ((( 0 3 ) ( 3 2 ) ( 2 1 ))) False >>> d == dict ( d ) False >>> d == False False
def __eq__(self, other):
        """
        >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
        >>> d == OrderedDict(d)
        True
        >>> d == OrderedDict(((1, 3), (2, 1), (3, 2)))
        False
        >>> d == OrderedDict(((1, 0), (3, 2), (2, 1)))
        False
        >>> d == OrderedDict(((0, 3), (3, 2), (2, 1)))
        False
        >>> d == dict(d)
        False
        >>> d == False
        False
        """
        if isinstance(other, OrderedDict):
            # FIXME: efficiency?
            #   Generate both item lists for each compare
            return (self.items() == other.items())
        else:
            return False
def __eq__ ( self , other ) : if isinstance ( other , OrderedDict ) : # FIXME: efficiency? #   Generate both item lists for each compare return ( self . items ( ) == other . items ( ) ) else : return False