INNER CODE UNIT · Python
__hash__
netaddr/netaddr · netaddr/eui/__init__.py:87
def __hash__(self):
return hash(self._value)
def __eq__(self, other):
if not isinstance(other, OUI):
try:
other = self.__class__(other)
except Exception:
return NotImplemented
return self._value == other._value
def __ne__(self, other):
if not isinstance(other, OUI):
try:
other = self.__class__(other)
except Exception:
return NotImplemented
return self._value != other._value