def __eq__(self, other):
        """ Test concept equality by means of references. """
        if hasattr(other, 'ref'):
            return other.ref == self.ref
        return self.ref == other
def __eq__ ( self , other ) : if hasattr ( other , 'ref' ) : return other . ref == self . ref return self . ref == other
Test concept equality by means of references.