#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# if ( not isinstance ( other , Resource ) ) : #NEWLINE# #INDENT# return NotImplemented #NEWLINE# #UNINDENT# if ( not isinstance ( other , other . __class__ ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( hasattr ( self , 'id' ) and hasattr ( other , 'id' ) ) : #NEWLINE# #INDENT# return ( self . id == other . id ) #NEWLINE# #UNINDENT# return ( self . _info == other . _info )