Skip to content

Commit 950b324

Browse files
[doc] Fix gethostbyname_ex description (GH-28700) (GH-28743)
It seems part of `gethostbyname_ex` doc was copied from `gethostbyaddr`. The latter has an `ip_address` parameter whereas the former doesn't. (cherry picked from commit 4103280) Co-authored-by: Andre Delfino <[email protected]> Co-authored-by: Andre Delfino <[email protected]>
1 parent f4a7ce7 commit 950b324

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/socket.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,8 +814,8 @@ The :mod:`socket` module also offers various network-related services:
814814
.. function:: gethostbyname_ex(hostname)
815815

816816
Translate a host name to IPv4 address format, extended interface. Return a
817-
triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the primary
818-
host name responding to the given *ip_address*, *aliaslist* is a (possibly
817+
triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the host's
818+
primary host name, *aliaslist* is a (possibly
819819
empty) list of alternative host names for the same address, and *ipaddrlist* is
820820
a list of IPv4 addresses for the same interface on the same host (often but not
821821
always a single address). :func:`gethostbyname_ex` does not support IPv6 name

0 commit comments

Comments
 (0)