MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / is_private

Method is_private

tools/python-3.11.9-amd64/Lib/ipaddress.py:1335–1343  ·  view source on GitHub ↗

Test if this address is allocated for private networks. Returns: A boolean, True if the address is reserved per iana-ipv4-special-registry.

(self)

Source from the content-addressed store, hash-verified

1333 @property
1334 @functools.lru_cache()
1335 def is_private(self):
1336 """Test if this address is allocated for private networks.
1337
1338 Returns:
1339 A boolean, True if the address is reserved per
1340 iana-ipv4-special-registry.
1341
1342 """
1343 return any(self in net for net in self._constants._private_networks)
1344
1345 @property
1346 @functools.lru_cache()

Callers

nothing calls this directly

Calls 1

anyFunction · 0.70

Tested by

no test coverage detected