(self)
return (self.network_address.is_private and
                self.broadcast_address.is_private)
Test if this address is allocated for private networks.

        Returns:
            A boolean, True if the address is reserved per
            iana-ipv4-special-registry or iana-ipv6-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 or iana-ipv6-special-registry.

        """
        return (self.network_address.is_private and
                self.broadcast_address.is_private)
def is_private ( self ) : return ( self . network_address . is_private and self . broadcast_address . is_private )