#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , OrderedDict ) : #NEWLINE# #INDENT# if ( len ( self ) != len ( other ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# for ( p , q ) in zip ( self . items ( ) , other . items ( ) ) : #NEWLINE# #INDENT# if ( p != q ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True #NEWLINE# #UNINDENT# return dict . __eq__ ( self , other )