#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# other_key = getattr ( other , 'key' , None ) #NEWLINE# other_sequence = getattr ( other , 'sequence' , None ) #NEWLINE# return ( ( other_key is not None ) and ( self . key == other_key ) and ( self . sequence == other_sequence ) )