示例#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")