A class whose objects represent network addresses of different types
based on arguments passed to the constructor.
The address type can either be auto-detected from the string form of
the address or specified explicitly via the second argument.
The behaviour of this class varies depending on the type of address
that it represents.
|
|
|
|
|
__int__(self)
Returns the value of this address as an network byte order int, if
possible. |
source code
|
|
|
|
|
|
|
bits(self)
Return a human-readable binary digit string representation of this
address. |
source code
|
|
|
__len__(self)
Return the size of this address (in bits). |
source code
|
|
|
__iter__(self)
Provide an iterator over words (based on word_size) in this address. |
source code
|
|
|
|
|
__setitem__(self,
index,
value)
Set the value of the word of this address indicated by index. |
source code
|
|
|
__hex__(self)
Returns the value of this address as a network byte order hexadecimal
string. |
source code
|
|
|
__iadd__(self,
increment)
Increment the value of this network address by the specified value. |
source code
|
|
|
__isub__(self,
decrement)
Decrement the value of this network address by specified value. |
source code
|
|
|
__eq__(self,
other)
True if this network address instance has the same numerical value as
another, False otherwise. |
source code
|
|
|
__lt__(self,
other)
True if this network address instance has a lower numerical value
than another, False otherwise. |
source code
|
|
|
__le__(self,
other)
True if this network address instance has a lower or equivalent
numerical value than another, False otherwise. |
source code
|
|
|
__gt__(self,
other)
True if this network address instance has a higher numerical value
than another, False otherwise. |
source code
|
|
|
__ge__(self,
other)
True if this network address instance has a higher or equivalent
numerical value than another, False otherwise. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|