Test if this address is allocated for private networks. Returns: A boolean, True if the address is reserved per iana-ipv4-special-registry.
(self)
| 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() |