MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

1413class IPv4Interface(IPv4Address):
1414
1415 def __init__(self, address):
1416 addr, mask = self._split_addr_prefix(address)
1417
1418 IPv4Address.__init__(self, addr)
1419 self.network = IPv4Network((addr, mask), strict=False)
1420 self.netmask = self.network.netmask
1421 self._prefixlen = self.network._prefixlen
1422
1423 @functools.cached_property
1424 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