Beispiel #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 _get_hash(_get_full_class_name(self), self.base_set)
Beispiel #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(_get_full_class_name(self))