#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# if ( not isinstance ( other , self . __class__ ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# for attr in self . __slots__ : #NEWLINE# #INDENT# my_val = getattr ( self , attr ) #NEWLINE# other_val = getattr ( other , attr ) #NEWLINE# if ( my_val != other_val ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True