Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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))
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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))
Exemplo n.º 5
0
 def test_get_full_class_name(self):
     self.assertEqual(get_full_class_name(Set()), "algebraixlib.mathobjects.set.Set")
 def test_get_full_class_name(self):
     self.assertEqual(get_full_class_name(Set()), "algebraixlib.mathobjects.set.Set")