예제 #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)
예제 #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))
예제 #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)
예제 #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))
예제 #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")