Represents 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.
This is the only network address aggregate class that supports all
network address types (essentially Addr (sub)class objects). Most if not
all subclasses of AddrRange tend towards support for only a subset of
address types.
|
|
|
first(self)
Returns the Addr instance for the lower boundary of this network
address range. |
source code
|
|
|
last(self)
Returns the Addr instance for the upper boundary of this network
address range. |
source code
|
|
|
__len__(self)
Return total number of addresses to be found in this address range. |
source code
|
|
|
size(self)
Return total number of addresses to be found in this address range. |
source code
|
|
|
__getitem__(self,
index)
Return the Addr instance from this address range indicated by index
or slice. |
source code
|
|
|
__iter__(self)
Returns an iterator object providing lazily evaluated access to all
Addr() instances within this network address range. |
source code
|
|
|
__contains__(self,
addr)
Returns True if given address or address range falls within the
boundary of this network address False otherwise. |
source code
|
|
|
__eq__(self,
other)
True if the boundary addresses of this address range are the same as
those of the other and the address types they represent are the same,
False otherwise. |
source code
|
|
|
__ne__(self,
other)
True if the boundary addresses of this address range are not the same
as those of the other, False otherwise. |
source code
|
|
|
__lt__(self,
other)
True if the lower boundary address of this address range is less than
that of the other and the address types they represent are the same,
False otherwise. |
source code
|
|
|
__le__(self,
other)
True if the lower boundary address of this address range is less than
or equal to that of the other and the address types they represent
are the same, False otherwise. |
source code
|
|
|
__gt__(self,
other)
True if the lower boundary address of this address range is greater
than that of the other and the address types they represent are the
same, False otherwise. |
source code
|
|
|
__ge__(self,
other)
True if the lower boundary address of this address range is greater
than or equal to that of the other and the address types they
represent are the same, False otherwise. |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|