| |
- builtins.tuple(builtins.object)
-
- IPv4Host
- IPv6Host
class IPv4Host(builtins.tuple) |
|
IPv4Host(name: str = '', port: int = 0)
See: https://docs.python.org/3/library/socket.html#socket-families. |
|
- Method resolution order:
- IPv4Host
- builtins.tuple
- builtins.object
Methods defined here:
- __getnewargs__(self)
- Return self as a plain tuple. Used by copy and pickle.
- __repr__(self)
- Return a nicely formatted representation string
- __str__(self) -> str
- Get this host as a string.
- _asdict(self)
- Return a new dict which maps field names to their values.
- _replace(self, /, **kwds)
- Return a new IPv4Host object replacing specified fields with new values
Class methods defined here:
- _make(iterable) from builtins.type
- Make a new IPv4Host object from a sequence or iterable
Static methods defined here:
- __new__(_cls, name: str = '', port: int = 0)
- Create new instance of IPv4Host(name, port)
Data descriptors defined here:
- name
- Alias for field number 0
- port
- Alias for field number 1
Data and other attributes defined here:
- __annotations__ = {'name': <class 'str'>, 'port': <class 'int'>}
- __match_args__ = ('name', 'port')
- __orig_bases__ = (<function NamedTuple>,)
- _field_defaults = {'name': '', 'port': 0}
- _fields = ('name', 'port')
Methods inherited from builtins.tuple:
- __add__(self, value, /)
- Return self+value.
- __contains__(self, key, /)
- Return bool(key in self).
- __eq__(self, value, /)
- Return self==value.
- __ge__(self, value, /)
- Return self>=value.
- __getattribute__(self, name, /)
- Return getattr(self, name).
- __getitem__(self, key, /)
- Return self[key].
- __gt__(self, value, /)
- Return self>value.
- __hash__(self, /)
- Return hash(self).
- __iter__(self, /)
- Implement iter(self).
- __le__(self, value, /)
- Return self<=value.
- __len__(self, /)
- Return len(self).
- __lt__(self, value, /)
- Return self<value.
- __mul__(self, value, /)
- Return self*value.
- __ne__(self, value, /)
- Return self!=value.
- __rmul__(self, value, /)
- Return value*self.
- count(self, value, /)
- Return number of occurrences of value.
- index(self, value, start=0, stop=9223372036854775807, /)
- Return first index of value.
Raises ValueError if the value is not present.
Class methods inherited from builtins.tuple:
- __class_getitem__(...) from builtins.type
- See PEP 585
|
class IPv6Host(builtins.tuple) |
|
IPv6Host(name: str = '', port: int = 0, flowinfo: int = 0, scope_id: int = 0)
See: https://docs.python.org/3/library/socket.html#socket-families. |
|
- Method resolution order:
- IPv6Host
- builtins.tuple
- builtins.object
Methods defined here:
- __getnewargs__(self)
- Return self as a plain tuple. Used by copy and pickle.
- __repr__(self)
- Return a nicely formatted representation string
- __str__(self) -> str
- Get this host as a string.
- _asdict(self)
- Return a new dict which maps field names to their values.
- _replace(self, /, **kwds)
- Return a new IPv6Host object replacing specified fields with new values
Class methods defined here:
- _make(iterable) from builtins.type
- Make a new IPv6Host object from a sequence or iterable
Static methods defined here:
- __new__(_cls, name: str = '', port: int = 0, flowinfo: int = 0, scope_id: int = 0)
- Create new instance of IPv6Host(name, port, flowinfo, scope_id)
Data descriptors defined here:
- name
- Alias for field number 0
- port
- Alias for field number 1
- flowinfo
- Alias for field number 2
- scope_id
- Alias for field number 3
Data and other attributes defined here:
- __annotations__ = {'flowinfo': <class 'int'>, 'name': <class 'str'>, 'port': <class 'int'>, 'scope_id': <class 'int'>}
- __match_args__ = ('name', 'port', 'flowinfo', 'scope_id')
- __orig_bases__ = (<function NamedTuple>,)
- _field_defaults = {'flowinfo': 0, 'name': '', 'port': 0, 'scope_id': 0}
- _fields = ('name', 'port', 'flowinfo', 'scope_id')
Methods inherited from builtins.tuple:
- __add__(self, value, /)
- Return self+value.
- __contains__(self, key, /)
- Return bool(key in self).
- __eq__(self, value, /)
- Return self==value.
- __ge__(self, value, /)
- Return self>=value.
- __getattribute__(self, name, /)
- Return getattr(self, name).
- __getitem__(self, key, /)
- Return self[key].
- __gt__(self, value, /)
- Return self>value.
- __hash__(self, /)
- Return hash(self).
- __iter__(self, /)
- Implement iter(self).
- __le__(self, value, /)
- Return self<=value.
- __len__(self, /)
- Return len(self).
- __lt__(self, value, /)
- Return self<value.
- __mul__(self, value, /)
- Return self*value.
- __ne__(self, value, /)
- Return self!=value.
- __rmul__(self, value, /)
- Return value*self.
- count(self, value, /)
- Return number of occurrences of value.
- index(self, value, start=0, stop=9223372036854775807, /)
- Return first index of value.
Raises ValueError if the value is not present.
Class methods inherited from builtins.tuple:
- __class_getitem__(...) from builtins.type
- See PEP 585
| |