mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
[doc] Fix gethostbyname_ex description (GH-28700)
It seems part of `gethostbyname_ex` doc was copied from `gethostbyaddr`. The latter has an `ip_address` parameter whereas the former doesn't.
This commit is contained in:
parent
69f6dabb9c
commit
4103280b83
1 changed files with 2 additions and 2 deletions
|
|
@ -827,8 +827,8 @@ The :mod:`socket` module also offers various network-related services:
|
|||
.. function:: gethostbyname_ex(hostname)
|
||||
|
||||
Translate a host name to IPv4 address format, extended interface. Return a
|
||||
triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the primary
|
||||
host name responding to the given *ip_address*, *aliaslist* is a (possibly
|
||||
triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the host's
|
||||
primary host name, *aliaslist* is a (possibly
|
||||
empty) list of alternative host names for the same address, and *ipaddrlist* is
|
||||
a list of IPv4 addresses for the same interface on the same host (often but not
|
||||
always a single address). :func:`gethostbyname_ex` does not support IPv6 name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue