An abstract base class for common operations shared between various IP
related subclasses.
|
|
|
key(self)
Returns:
a key tuple that uniquely identifies this IP address. |
|
|
|
sort_key(self)
Returns:
A key tuple used to compare and sort this IPAddress
correctly. |
|
|
|
__hash__(self)
Returns:
A hash value uniquely indentifying this IP object. |
|
|
|
|
|
|
|
|
|
__le__(self,
other)
Returns:
True if this IPAddress or IPNetwork
object is less than or equal to other ,
False otherwise. |
|
|
|
|
|
__ge__(self,
other)
Returns:
True if this IPAddress or IPNetwork
object is greater than or equal to other ,
False otherwise. |
|
|
|
is_unicast(self)
Returns:
True if this IP is unicast, False otherwise |
|
|
|
is_multicast(self)
Returns:
True if this IP is multicast, False
otherwise |
|
|
|
is_loopback(self)
Returns:
True if this IP is loopback address (not for network
transmission), False otherwise. |
|
|
|
is_private(self)
Returns:
True if this IP is for internal/private use only (i.e. |
|
|
|
is_link_local(self)
Returns:
True if this IP is link-local address False
otherwise. |
|
|
|
is_reserved(self)
Returns:
True if this IP is in IANA reserved range,
False otherwise. |
|
|
|
is_ipv4_mapped(self)
Returns:
True if this IP is IPv4-compatible IPv6 address,
False otherwise. |
|
|
|
is_ipv4_compat(self)
Returns:
True if this IP is IPv4-mapped IPv6 address,
False otherwise. |
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|