Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias identifier Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Lambda arguments args NameParam defaults NameLoad ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body If CompareIs NameLoad NameLoad body If CompareEq BinOpBitAnd AttributeLoad NameLoad attr Num Num body Assign AttributeStore NameLoad attr Num orelse If CompareEq BinOpBitAnd AttributeLoad NameLoad attr Num Num body Assign AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr BinOpBitAnd BinOpRShift AttributeLoad NameLoad attr Num Num BinOpRShift BinOpBitAnd AttributeLoad NameLoad attr Num Num BinOpRShift BinOpBitAnd AttributeLoad NameLoad attr Num Num BinOpBitAnd AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad BinOpBitAnd BinOpRShift AttributeLoad NameLoad attr Num Num BinOpRShift BinOpBitAnd AttributeLoad NameLoad attr Num Num BinOpRShift BinOpBitAnd AttributeLoad NameLoad attr Num Num BinOpBitAnd AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr NameLoad NameLoad Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr NameLoad NameLoad Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call NameLoad BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr Num body Return Num orelse Return BinOpBitOr AttributeLoad NameLoad attr BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr Num body Return AttributeLoad NameLoad attr orelse Return BinOpBitAnd AttributeLoad NameLoad attr BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr BinOpBitOr BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitAnd Call NameLoad NameLoad BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Str Assign NameStore NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call NameLoad BinOpAdd BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad NameLoad Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call NameLoad BinOpAdd BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr NameLoad NameLoad Str FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGt Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num orelse Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num orelse If CompareIn Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse If CompareIs Call NameLoad NameLoad NameLoad body Assert CompareGtE Call NameLoad NameLoad Num Assign AttributeStore NameLoad attr BinOpBitOr BinOpBitOr BinOpBitOr BinOpLShift SubscriptLoad NameLoad Index Num Num BinOpLShift SubscriptLoad NameLoad Index Num Num BinOpLShift SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Index Num orelse If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs Call NameLoad NameLoad NameLoad body If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse If CompareIn Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareLtE NameLoad Num CompareGtE NameLoad Num body Return BinOpBitAnd BinOpLShift Num BinOpSub Num NameLoad Num orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num For NameStore Call NameLoad Num body Assign NameStore BinOpBitAnd BinOpRShift NameLoad BinOpMult NameLoad Num Num While CompareNotEq NameLoad Num body If CompareEq BinOpBitAnd NameLoad Num Num body AugAssignAdd NameStore Num AugAssignRShift NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad BinOpSub AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad BinOpMod AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return CompareLtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Num Return CompareEq BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareGtE NameLoad Num body If CompareLtE NameLoad BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num body Return Call NameLoad BinOpAdd BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse Raise Call NameLoad Str orelse If CompareLt UnaryOpUSub NameLoad BinOpAdd BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num Num body Return Call NameLoad BinOpAdd BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num NameLoad Num AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num Num Assign NameStore BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareLt NameLoad Num body Assign NameStore BinOpAdd NameLoad NameLoad If CompareLt NameLoad Num body Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignSub AttributeStore NameLoad attr Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num body AugAssignSub AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num body AugAssignAdd AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num body AugAssignAdd AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num body AugAssignSub AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr BinOpAdd BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr BinOpAdd BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr BinOpMult BinOpAdd BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr BinOpMult BinOpAdd BinOpBitAnd UnaryOpInvert AttributeLoad NameLoad attr Num Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler body Return Str Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpBitAnd AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpSub BinOpAdd BinOpBitAnd AttributeLoad NameLoad attr NameLoad BinOpBitAnd UnaryOpInvert NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad AugAssignAdd AttributeStore NameLoad attr Num Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad Return BinOpAdd BinOpAdd BinOpAdd BinOpLShift Call NameLoad SubscriptLoad NameLoad Index Num Num BinOpLShift Call NameLoad SubscriptLoad NameLoad Index Num Num BinOpLShift Call NameLoad SubscriptLoad NameLoad Index Num Num Call NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str BinOpBitAnd BinOpRShift NameLoad Num Num BinOpRShift BinOpBitAnd NameLoad Num Num BinOpRShift BinOpBitAnd NameLoad Num Num BinOpBitAnd NameLoad Num Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign AttributeStore NameLoad attr BinOpAdd NameLoad BinOpMult BinOpAdd UnaryOpInvert AttributeLoad NameLoad attr Num BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Num If NameLoad body Return Call NameLoad SubscriptLoad NameLoad Index Num NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad If CompareLt AttributeLoad NameLoad attr Num body AugAssignMult AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Return NameLoad Return BoolOpAnd CompareLtE AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr CompareGtE AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareLtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Return NameLoad orelse Raise NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLt NameLoad Num body Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr NameLoad Num If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse Return BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list
N/A N/A 
IPv4 module. Defines an IPv4 class (Internet Protocol address).

Exports helper functions::

    itodq(int) - return dotted quad string given an integer.
    dqtoi(string) - return and integer given a string in IP dotted-quad notation.
    iprange(startip, number) - return a list of sequential hosts in a network, as strings.
    ipnetrange(startnet, number) - return a list of sequential networks, as strings.
    netrange(startnet, number, [increment]) - return a list of networks, as IPv4 objects.


The IPv4 class stores the IP address and mask. It also makes available the
network, host, and broadcast addresses via computed attributes.
See the IPv4 documentation for more details.


 __future__ absolute_import __future__ print_function __future__ division N/A struct N/A N/A sys maxint N/A N/A N/A ImportError N/A sys maxsize maxint N/A long int N/A basestring str N/A ord N/A N/A N/A x N/A x pycopia socket IPv4 N/A object N/A N/A 
    Store an IP addresss. Computes the network, host, and broadcast address on
    demand.

    Usage::

        ipaddress = IPv4(address, [mask])

    Supply an address as an integer,  dotted-quad string, list of 4
    integer octets, or another IPv4 object. A netmask may optionally be
    supplied. It defaults to a classful mask appropriate for its class.
    the netmask may be supplied as integer, dotted quad, or slash (e.g.
    /24) notation. The mask may optionally be part of the IP address, in
    slash notation. if an IPv4 object is initialized with another IPv4
    object, the address and mask are taken from it. In the case that a
    mask is obtained from the address parameter, the mask parameter will
    be ignored.

    For example::

        ip = IPv4("10.1.1.2")
        ip = IPv4("10.1.1.2", "255.255.255.0")
        ip = IPv4("10.1.1.2/24") # note that if a mask value was supplied,
                                 # it would be ignored.

    Raises ValueError if the string representation is malformed, or is not an
    integer.

    Class attributes that you may set or read are::

        address   = 32 bit integer IP address
        mask      = 32 bit integer mask
        maskbits  = number of bits in the mask

    additional attributes that are read-only (UNDEFINED for /32 IPV4 objects!)::

        network             = network number, host part is zero.
        host (or hostpart)  = host number, network part is zero.
        broadcast           = directed broadcast address, host part is all ones.
        firsthost           = What would be the first address in the subnet.
        lasthost            = What would be the last address in the subnet.

    Methods::

        copy() - Return a copy of this IPv4 address.
        nextnet() - Increments the IP address into the next network range.
        previousnet() - Decrements the IP address into the previous network range.
        nexthost() - Increments this IP address object's host number.
        previoushost() - Decrements this IP address object's host number.
        set_to_first() - Set the IP address to the first address in the subnet.
        set_to_last() - Set the IP address to the last address in the subnet.
        getStrings() - return a 3-tuple of address, mask and broadcast as dotted
                       quad strings.

    Operators::

        An IPv4 object can be used in a "natural" way with some python
        operators.  It behaves as a sequence object when sequence
        operators are applied to it.
        For example::

            ip = ipv4.IPv4("192.168.1.0", "255.255.255.248")
            ip[2] returns 2nd host in subnet.
            ip[-1] returns broadcast address.
            ip[0] returns network.
            ip[1:-1] returns list of IPv4 objects from first to last host.
            len(ip) returns number of hosts in network range, including net
                    and broadcast.
            if ip3 in ip:     # test for inclusion in subnet
                print "In range"

        You may also perform some arithmetic operators::

            ip2 = ip + 2 # assigns ip2 to new IPv4 object two hosts greater than ip.
            ip2 > ip # returns true (can compare addresses)
            int(ip) # return IPv4 object address as integer
            hex(ip) # return IPv4 object address as hexadecimal string

     N/A __slots__ N/A _address _mask __init__ N/A N/A self address mask N/A None N/A N/A N/A self _address 0 N/A N/A self _mask None N/A N/A N/A self __handleAddress address N/A N/A N/A self _mask None N/A N/A N/A mask None N/A N/A N/A N/A N/A self _address 2147483648 0 N/A N/A N/A self _mask 4278190080 N/A N/A N/A N/A N/A self _address 1073741824 0 N/A N/A N/A self _mask 4294901760 N/A N/A N/A self _mask 4294967040 N/A N/A N/A N/A self __handleMask mask N/A __repr__ N/A N/A self N/A N/A N/A N/A %s('%u.%u.%u.%u/%u') N/A N/A N/A self __class__ __name__ N/A N/A N/A self _address 24 255 N/A N/A N/A self _address 16711680 16 N/A N/A N/A self _address 65280 8 N/A N/A self _address 255 N/A N/A self __mask2bits N/A __str__ N/A N/A self N/A N/A N/A N/A %u.%u.%u.%u N/A N/A N/A N/A self _address 24 255 N/A N/A N/A self _address 16711680 16 N/A N/A N/A self _address 65280 8 N/A N/A self _address 255 N/A __getstate__ N/A N/A self N/A N/A N/A N/A N/A self _address N/A self _mask N/A __setstate__ N/A N/A self state N/A N/A N/A N/A N/A self _address N/A self _mask state N/A __iter__ N/A N/A self N/A N/A N/A N/A _NetIterator self N/A getStrings N/A N/A self N/A N/A N/A Returns a 3-tuple of address, mask, and broadcast address as dotted-quad string.
         N/A N/A N/A itodq N/A self _address N/A itodq N/A self _mask N/A itodq N/A self broadcast N/A N/A address_mask_broadcast N/A property getStrings cidr N/A N/A self N/A N/A N/A Returns string in CIDR notation. N/A N/A %s/%u N/A N/A itodq N/A self _address N/A N/A self __mask2bits N/A N/A CIDR N/A property cidr N/A address N/A property N/A N/A N/A s N/A N/A s _address N/A N/A N/A s v N/A N/A N/A s __handleAddress v None whole address N/A mask N/A property N/A N/A N/A s N/A N/A s _mask N/A N/A N/A s v N/A N/A N/A s __handleMask v None address mask N/A maskbits N/A property N/A N/A N/A s N/A N/A N/A s __mask2bits N/A N/A N/A s v N/A N/A N/A s __handleMask N/A N/A s __bits2mask v None CIDR mask bits N/A network N/A property N/A N/A N/A s N/A N/A IPv4 N/A N/A s _address N/A s _mask N/A s _mask None None network part _get_broadcast N/A N/A self N/A N/A N/A N/A N/A self _mask 4294967295 N/A N/A 4294967295 N/A N/A N/A N/A self _address N/A N/A N/A self _mask 4294967295 N/A N/A broadcast N/A property _get_broadcast _get_hostpart N/A N/A self N/A N/A N/A N/A N/A self _mask 4294967295 N/A N/A N/A self _address N/A N/A N/A N/A self _address N/A N/A N/A self _mask 4294967295 N/A _set_hostpart N/A N/A self value N/A N/A N/A N/A self _address N/A N/A N/A self _address N/A self _mask N/A N/A long value N/A N/A N/A self _mask 4294967295 N/A N/A host N/A property _get_hostpart _set_hostpart None host part N/A hostpart host N/A firsthost N/A property N/A N/A N/A s N/A N/A IPv4 N/A N/A N/A s _address N/A s _mask 1 N/A s _mask None None first host in range N/A lasthost N/A property N/A N/A N/A s N/A N/A IPv4 N/A N/A N/A s _address N/A s _mask N/A N/A N/A N/A s _mask 4294967295 1 N/A s _mask None None last host in range __handleAddress N/A N/A self address N/A N/A N/A N/A isinstance address basestring N/A N/A aml N/A N/A address split / N/A N/A N/A len aml 1 N/A N/A N/A self _address N/A nametoi N/A aml N/A 0 N/A N/A self _mask N/A N/A self __bits2mask N/A long N/A aml N/A 1 N/A N/A N/A self _address N/A nametoi N/A aml N/A 0 N/A N/A N/A N/A type address N/A long int N/A N/A N/A self _address N/A long address N/A N/A N/A N/A type address list N/A N/A N/A N/A len address 4 N/A N/A self _address N/A N/A N/A N/A N/A address N/A 0 24 N/A N/A address N/A 1 16 N/A N/A address N/A 2 8 N/A address N/A 3 N/A N/A N/A isinstance address IPv4 N/A N/A N/A self _address N/A address _address N/A N/A self _mask N/A address _mask N/A N/A N/A ValueError N/A N/A Can't convert {!r} to IPv4 format address N/A __handleMask N/A N/A self mask N/A N/A N/A N/A N/A type mask str N/A N/A N/A N/A mask N/A 0 / N/A N/A bits N/A int N/A mask N/A 1 N/A N/A self _mask N/A N/A self __bits2mask bits N/A N/A N/A self _mask N/A dqtoi mask N/A N/A N/A N/A type mask N/A long int N/A N/A N/A self _mask N/A long mask N/A N/A N/A ValueError N/A Invalid mask value: %r N/A mask N/A __bits2mask N/A N/A self bits N/A N/A N/A N/A N/A bits 32 N/A bits 0 N/A N/A N/A N/A 4294967295 N/A 32 bits 4294967295 N/A N/A N/A ValueError mask bits must be in range 0 to 32 N/A __mask2bits N/A N/A self N/A N/A N/A val N/A self _mask N/A bits 0 N/A byte N/A range 4 N/A N/A testval N/A N/A val N/A byte 8 255 N/A N/A testval 0 N/A N/A N/A N/A testval 1 1 N/A N/A bits 1 N/A testval 1 N/A bits N/A __add__ N/A N/A self increment N/A N/A N/A N/A IPv4 N/A N/A self _address increment N/A self _mask N/A __sub__ N/A N/A self decrement N/A N/A N/A N/A IPv4 N/A N/A self _address decrement N/A self _mask N/A __int__ N/A N/A self N/A N/A N/A N/A long N/A self _address N/A __long__ N/A N/A self N/A N/A N/A N/A long N/A self _address N/A __hex__ N/A N/A self N/A N/A N/A N/A hex N/A self _address N/A __hash__ N/A N/A self N/A N/A N/A N/A int N/A N/A self _address maxint N/A __eq__ N/A N/A self other N/A N/A N/A other N/A N/A self __class__ other N/A N/A N/A N/A self _address N/A other _address N/A N/A self _mask N/A other _mask N/A __ne__ N/A N/A self other N/A N/A N/A other N/A N/A self __class__ other N/A N/A N/A self _address N/A other _address N/A __lt__ N/A N/A self other N/A N/A N/A other N/A N/A self __class__ other N/A N/A N/A self _address N/A other _address N/A __gt__ N/A N/A self other N/A N/A N/A other N/A N/A self __class__ other N/A N/A N/A self _address N/A other _address N/A __ge__ N/A N/A self other N/A N/A N/A other N/A N/A self __class__ other N/A N/A N/A self _address N/A other _address N/A __le__ N/A N/A self other N/A N/A N/A other N/A N/A self __class__ other N/A N/A N/A self _address N/A other _address N/A __contains__ N/A N/A self other N/A N/A N/A other N/A N/A self __class__ other N/A N/A N/A self _mask N/A other _mask N/A N/A 0 N/A N/A N/A N/A self _address N/A self _mask N/A N/A other _address N/A other _mask N/A __getitem__ N/A N/A self index N/A N/A N/A N/A index 0 N/A N/A N/A index N/A N/A N/A self _mask 4294967295 N/A N/A N/A IPv4 N/A N/A N/A self _address N/A self _mask index N/A self _mask N/A N/A N/A IndexError Host out of range N/A N/A N/A N/A index N/A N/A N/A N/A self _mask 4294967295 1 N/A N/A N/A IPv4 N/A N/A N/A self _address N/A self _mask N/A N/A N/A N/A N/A self _mask 4294967295 index 1 N/A self _mask N/A N/A N/A IndexError Host out of range N/A __setitem__ N/A N/A self index value N/A N/A N/A N/A IndexError cannot set a sequence index N/A __len__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A self _mask 4294967295 1 N/A __getslice__ N/A N/A self start end N/A N/A N/A length N/A N/A N/A N/A self _mask 4294967295 1 N/A selfnet N/A N/A self _address N/A self _mask N/A N/A end 0 N/A N/A end N/A length end N/A N/A start 0 N/A N/A start N/A length start N/A start N/A min start length N/A end N/A min end length N/A sublist N/A N/A i N/A range start end N/A N/A N/A N/A sublist append N/A IPv4 N/A selfnet i N/A self _mask N/A sublist N/A copy N/A N/A self N/A N/A N/A N/A IPv4 N/A self _address N/A self _mask N/A __isub__ N/A N/A self other N/A N/A N/A N/A self _address N/A long other N/A N/A N/A self host N/A N/A N/A self _mask 4294967295 N/A N/A N/A self _address 2 N/A self N/A __iadd__ N/A N/A self other N/A N/A N/A N/A self _address N/A long other N/A N/A N/A self host N/A N/A N/A self _mask 4294967295 N/A N/A N/A self _address 2 N/A self N/A nexthost N/A N/A self increment N/A 1 N/A N/A Increments this IP address object's host number. It will overflow into the
        next network range. It will not become a broadcast or network address.

         N/A N/A self _address N/A N/A self _address increment N/A N/A N/A self host N/A N/A N/A self _mask 4294967295 N/A N/A N/A self _address 2 N/A self N/A previoushost N/A N/A self decrement N/A 1 N/A N/A Decrements this IP address object's host number. It will underflow into the
        next network range. It will not become a broadcast or network address.

         N/A N/A self _address N/A N/A self _address decrement N/A N/A N/A self host N/A N/A N/A self _mask 4294967295 N/A N/A N/A self _address 2 N/A self N/A set_to_first N/A N/A self N/A N/A N/A Set the address to the first host in the network.
         N/A N/A self _address N/A N/A N/A self _address N/A self _mask 1 N/A self N/A set_to_last N/A N/A self N/A N/A N/A Set the address to the last host in the network.
         N/A N/A self _address N/A N/A N/A self _address N/A self _mask N/A N/A N/A N/A self _mask 4294967295 1 N/A self N/A nextnet N/A N/A self increment N/A 1 N/A N/A Increments the IP address into the next network range, keeping the host
        part constant. Default increment is 1, but optional increment parameter
        may be used.

         N/A N/A self _address N/A N/A self _address N/A N/A N/A N/A N/A self _mask 4294967295 1 increment N/A self N/A previousnet N/A N/A self decrement N/A 1 N/A N/A Decrements the IP address into the next network range, keeping the host
        part constant. Default decrement is 1, but optional decrement parameter
        may be used.
         N/A N/A self _address N/A N/A self _address N/A N/A N/A N/A N/A self _mask 4294967295 1 decrement N/A self N/A gethost N/A N/A self N/A N/A N/A gethost()
        Resolve this IP address to a canonical name using gethostbyaddr. N/A N/A N/A N/A hostname aliases others N/A N/A socket gethostbyaddr N/A str self N/A N/A N/A N/A N/A hostname N/A N/A hostname N/A property gethost None None associated host name N/A _NetIterator N/A object N/A __init__ N/A N/A self net N/A N/A N/A mask N/A self mask N/A net _mask N/A N/A self start N/A N/A net _address mask N/A N/A self end N/A N/A N/A N/A net _address mask N/A N/A mask 4294967295 1 N/A __iter__ N/A N/A self N/A N/A N/A self N/A __next__ N/A N/A self N/A N/A N/A N/A N/A self start N/A self end N/A N/A StopIteration N/A N/A self start 1 N/A N/A IPv4 N/A self start N/A self mask N/A N/A next __next__ N/A nametoi N/A N/A name N/A N/A N/A Resolve a name and return the IP address as an integer. N/A N/A dqtoi N/A N/A socket gethostbyname name N/A dqtoi N/A N/A dq N/A N/A N/A Return an integer value given an IP address as dotted-quad string.
    You can also supply the address as a a host name.
     N/A N/A N/A s N/A N/A socket inet_aton dq N/A N/A N/A N/A socket error N/A why N/A N/A N/A ValueError why N/A N/A N/A N/A N/A N/A ord N/A s N/A 0 24 N/A N/A ord N/A s N/A 1 16 N/A N/A ord N/A s N/A 2 8 N/A ord N/A s N/A 3 N/A itodq N/A N/A addr N/A N/A N/A Return a dotted-quad string given an integer.  N/A intval N/A long addr N/A s N/A N/A struct pack BBBB N/A N/A intval 24 255 N/A N/A intval 16711680 16 N/A N/A intval 65280 8 N/A intval 255 N/A N/A N/A socket inet_ntoa s N/A iprange N/A N/A startip number increment N/A 1 N/A N/A Return a list of consequtive IP address strings.

    Usage::
        iprange(startip, number)

    Where::
        `startip` is an IP address to start from.
        `number` is the number of IP addresses in the returned list.
     N/A start N/A IPv4 startip N/A ips N/A N/A i N/A range number N/A N/A N/A N/A ips append N/A str start N/A N/A N/A start nexthost increment N/A ips N/A ipnetrange N/A N/A startnet number increment N/A 1 N/A N/A Return a list of consecutive networks, starting from initial
    network and mask, keeping the mask constant.

    Usage::
        ipnetrange(startnet, number, [increment])

    Where::
        startnet is an IP address where the range will start.
        number is the number of IP networks in the range
        optional increment will skip that number of nets.

     N/A start N/A IPv4 startnet N/A ips N/A N/A baseaddress N/A start address N/A i N/A range number N/A N/A N/A start address N/A baseaddress N/A N/A N/A N/A start mask 1 N/A i increment N/A N/A N/A ips append N/A str start N/A ips N/A netrange N/A N/A startnet number increment N/A 1 N/A N/A Return a list of consecutive networks, starting from initial
    network and mask, keeping the mask constant.

    Usage::
        netrange(startnet, number, [increment])

    Where::
        startnet is an IP address where the range will start.
        number is the number of IP networks in the range.
        An optional increment will set the stride (count by <increment> nets).

     N/A ips N/A N/A counter N/A IPv4 startnet N/A i N/A range number N/A N/A N/A N/A ips append N/A N/A counter copy N/A N/A N/A counter nextnet increment N/A ips N/A resolve N/A N/A host mask N/A None N/A N/A Resolve a hostname to an IPv4 object. An optional mask value may me supplied. N/A N/A N/A N/A hostname aliases addresses N/A N/A socket gethostbyname_ex N/A str host N/A N/A N/A N/A socket gaierror N/A why N/A N/A N/A ValueError N/A Unable to resolve host: %s N/A why N/A 1 N/A addresses N/A N/A N/A IPv4 N/A addresses N/A 0 mask N/A N/A N/A ValueError No addresses found. N/A sortnets N/A N/A l N/A N/A N/A l N/A list l _netcmp N/A N/A a b N/A N/A N/A N/A cmp N/A b maskbits N/A a maskbits N/A N/A N/A N/A l sort _netcmp N/A l N/A findnet N/A N/A ip ipnets N/A N/A N/A ip N/A IPv4 ip N/A ipnet N/A sortnets ipnets N/A N/A N/A ip mask N/A ipnet mask N/A N/A ip ipnet N/A N/A ipnet N/A None N/A IPRange N/A object N/A __init__ N/A N/A self start end N/A N/A N/A start N/A IPv4 start N/A end N/A IPv4 end N/A N/A self _len N/A N/A long start N/A long end N/A N/A N/A self _len 0 N/A N/A N/A self _len -1 N/A N/A self _start start N/A N/A self _end end N/A N/A N/A self _start end N/A N/A self _end start N/A N/A self _index 0 N/A N/A N/A N/A self _start _mask N/A N/A self _end _mask start and end are not in the same network N/A N/A self _mask N/A N/A self _start _mask N/A __repr__ N/A N/A self N/A N/A N/A N/A %s.%s(%r, %r) N/A N/A N/A self __class__ __module__ N/A N/A self __class__ __name__ N/A self _start N/A self _end N/A __str__ N/A N/A self N/A N/A N/A N/A (%s, %s) N/A N/A N/A N/A self _start cidr N/A N/A N/A self _end cidr N/A __contains__ N/A N/A self other N/A N/A N/A other N/A IPv4 other N/A N/A N/A N/A self _start _mask N/A other _mask N/A N/A False N/A N/A N/A N/A N/A self _start _address N/A other _address N/A N/A N/A self _end _address N/A other _address N/A __next__ N/A N/A self N/A N/A N/A N/A N/A self _index N/A self _len N/A N/A rv N/A N/A self _start N/A self _index N/A N/A self _index 1 N/A rv N/A N/A StopIteration N/A N/A next __next__ __iter__ N/A N/A self N/A N/A N/A N/A self _index 0 N/A self N/A __getitem__ N/A N/A self idx N/A N/A N/A N/A idx 0 N/A N/A idx N/A N/A N/A self _len idx 1 N/A N/A N/A idx 0 N/A idx N/A self _len N/A N/A N/A IndexError IPRange index out of range N/A N/A N/A N/A self _start idx N/A N/A IPAddressSet N/A object N/A N/A N/A