def __init__(self, address):
<EOL>if isinstance(address, _compat_int_types):<EOL><INDENT>self._check_int_address(address)<EOL>self._ip = address<EOL>return<EOL><DEDENT>if isinstance(address, bytes):<EOL><INDENT>self._check_packed_address(address, <NUM_LIT:4>)<EOL>bvs = _compat_bytes_to_byte_vals(address)<EOL>self._ip = _compat_int_from_byte_vals(bvs, '<STR_LIT>')<EOL>return<EOL><DEDENT>addr_str = _compat_str(address)<EOL>if '<STR_LIT:/>' in addr_str:<EOL><INDENT>raise AddressValueError("<STR_LIT>" % address)<EOL><DEDENT>self._ip = self._ip_int_from_string(addr_str)<EOL>
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 ipaddress isn't a valid IPv4 address.