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

Method is_reserved

Lib/ipaddress.py:2047–2058  ·  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

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

Callers

nothing calls this directly

Calls 1

anyFunction · 0.70

Tested by

no test coverage detected