A block of contiguous network addresses bounded by an arbitrary start
and stop address. There is no requirement that they fall on strict bit
mask boundaries, unlike CIDR addresses.
The only network address aggregate supporting all network address
types. Most AddrRange subclasses only support a subset of address
types.
|
|
|
__setattr__(self,
name,
value)
Police assignments to various class attributes to ensure nothing gets
broken accidentally. |
source code
|
|
|
first(self)
Returns:
The lower boundary network address of this range. |
source code
|
|
|
last(self)
Returns:
The upper boundary network address of this range. |
source code
|
|
|
|
|
size(self)
Returns:
The total number of network addresses in this range. |
source code
|
|
|
__getitem__(self,
index)
Returns:
The network address(es) in this address range indicated by
index/slice. |
source code
|
|
|
__iter__(self)
Returns:
An iterator object providing access to all network addresses within
this range. |
source code
|
|
|
__contains__(self,
addr)
Returns:
True if given address or range falls within this range,
False otherwise. |
source code
|
|
|
__eq__(self,
other)
Returns:
True if the boundary of this range is the same as other,
False otherwise. |
source code
|
|
|
__ne__(self,
other)
Returns:
True if the boundary of this range is not the same as
other, False otherwise. |
source code
|
|
|
__lt__(self,
other)
Returns:
True if the lower boundary of this range is less than
other, False otherwise. |
source code
|
|
|
__le__(self,
other)
Returns:
True if the lower boundary of this range is less or
equal to other, False otherwise. |
source code
|
|
|
__gt__(self,
other)
Returns:
True if the lower boundary of this range is greater than
other, False otherwise. |
source code
|
|
|
__ge__(self,
other)
Returns:
True if the lower boundary of this range is greater or
equal to other, False otherwise. |
source code
|
|
|
|
|
__repr__(self)
Returns:
An executable Python statement that can recreate an object with an
equivalent state. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__
|