#NEWLINE# def _check_compatible( self , other ) : #NEWLINE# #INDENT# if ( ( type ( self ) != type ( other ) ) or ( self . name != other . name ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'cannot compare %s and %s' % ( self , other ) ) )