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

Method __init__

Lib/ipaddress.py:1418–1424  ·  view source on GitHub ↗
(self, address)

Source from the content-addressed store, hash-verified

1416class IPv4Interface(IPv4Address):
1417
1418 def __init__(self, address):
1419 addr, mask = self._split_addr_prefix(address)
1420
1421 IPv4Address.__init__(self, addr)
1422 self.network = IPv4Network((addr, mask), strict=False)
1423 self.netmask = self.network.netmask
1424 self._prefixlen = self.network._prefixlen
1425
1426 @functools.cached_property
1427 def hostmask(self):

Callers

nothing calls this directly

Calls 3

IPv4NetworkClass · 0.85
_split_addr_prefixMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected