#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# 'od.__eq__(y) <==> od==y.  Comparison to another OD is order-sensitive\n        while comparison to a regular mapping is order-insensitive.\n\n        ' #NEWLINE# if isinstance ( other , OrderedDict ) : #NEWLINE# #INDENT# return ( ( len ( self ) == len ( self ) ) and all ( _imap ( _eq , self . iteritems ( ) , other . iteritems ( ) ) ) ) #NEWLINE# #UNINDENT# return dict . __eq__ ( self , other )