#NEWLINE# def __contains__( self , other ) : #NEWLINE# #INDENT# 'Subclasses should implement this method for anything more complex than equality.' #NEWLINE# if ( type ( self ) == type ( other ) ) : #NEWLINE# #INDENT# return ( self == self ) #NEWLINE# #UNINDENT# raise NotImplementedError ( )