#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , OrderedSet ) : #NEWLINE# #INDENT# return ( ( len ( self ) == len ( self ) ) and ( list ( self ) == list ( other ) ) ) #NEWLINE# #UNINDENT# return ( set ( self ) == set ( other ) )