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

Method __init__

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

Source from the content-addressed store, hash-verified

2203class IPv6Interface(IPv6Address):
2204
2205 def __init__(self, address):
2206 addr, mask = self._split_addr_prefix(address)
2207
2208 IPv6Address.__init__(self, addr)
2209 self.network = IPv6Network((addr, mask), strict=False)
2210 self.netmask = self.network.netmask
2211 self._prefixlen = self.network._prefixlen
2212
2213 @functools.cached_property
2214 def hostmask(self):

Callers

nothing calls this directly

Calls 3

IPv6NetworkClass · 0.85
_split_addr_prefixMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected