(self)
return any(self in net for net in self._constants._private_networks)
Test if this address is allocated for private networks.

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

        Returns:
            A boolean, True if the address is reserved per
            iana-ipv4-special-registry.

        """
        return any(self in net for net in self._constants._private_networks)
def is_private ( self ) : return any ( self in net for net in self . _constants . _private_networks )