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

Method is_reserved

Lib/ipaddress.py:2048–2059  ·  view source on GitHub ↗

Test if the address is otherwise IETF reserved. Returns: A boolean, True if the address is within one of the reserved IPv6 Network ranges.

(self)

Source from the content-addressed store, hash-verified

2046
2047 @property
2048 def is_reserved(self):
2049 """Test if the address is otherwise IETF reserved.
2050
2051 Returns:
2052 A boolean, True if the address is within one of the
2053 reserved IPv6 Network ranges.
2054
2055 """
2056 ipv4_mapped = self.ipv4_mapped
2057 if ipv4_mapped is not None:
2058 return ipv4_mapped.is_reserved
2059 return any(self in x for x in self._constants._reserved_networks)
2060
2061 @property
2062 def is_link_local(self):

Callers

nothing calls this directly

Calls 1

anyFunction · 0.70

Tested by

no test coverage detected