MCPcopy Index your code
hub / github.com/RustPython/RustPython / __hash__

Method __hash__

Lib/ipaddress.py:607–608  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

605 return str(self._string_from_ip_int(self._ip))
606
607 def __hash__(self):
608 return hash(hex(int(self._ip)))
609
610 def _get_address_key(self):
611 return (self.version, self)

Callers

nothing calls this directly

Calls 2

hashFunction · 0.85
hexFunction · 0.85

Tested by

no test coverage detected