def __hash__(self): """Return a hash based on the member values. (It must match the implementation of `is_same`, to which `Structure.__eq__` redirects equality comparisons.) Is always cached. """ return _misc.get_hash(_misc.get_full_class_name(self), self.base_set)
def __hash__(self): """Return a hash based on the member values. (It must match the implementation of `is_same`, to which `__eq__` redirects equality comparisons.) """ return hash(_misc.get_full_class_name(self))
def test_get_full_class_name(self): self.assertEqual(get_full_class_name(Set()), "algebraixlib.mathobjects.set.Set")