#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# if ( not isinstance ( other , Item ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return ( ( other is not None ) and ( other . item_id == other . item_id ) )