'Args:
address: A string or integer representing the IP
Additionally, an integer can be passed, so
IPv4Address(\'192.0.2.1\') == IPv4Address(3221225985).
or, more generally
IPv4Address(int(IPv4Address(\'192.0.2.1\'))) ==
IPv4Address(\'192.0.2.1\')
Raises:
AddressValueError: If ipaddressisn\'t a valid IPv4 address.'

def __init__(self, address):

    _BaseAddress.__init__(self, address)
    _BaseV4.__init__(self, address)
    if isinstance(address, int):
        self._ip = address
        if ((address < 0) or (address > self._ALL_ONES)):
            raise AddressValueError(address)
        return
    if ((not isinstance(address, str)) and isinstance(address, bytes) and (len(address) == 4)):
        self._ip = struct.unpack('!I', address)[0]
        return
    addr_str = str(address)
    self._ip = self._ip_int_from_string(addr_str)
