Skip to content

Commit eb59e2f

Browse files
[doc] Fix gethostbyname_ex description (GH-28700) (GH-28742)
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]>
1 parent d0d2965 commit eb59e2f

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
@@ -827,8 +827,8 @@ The :mod:`socket` module also offers various network-related services:
827827
.. function:: gethostbyname_ex(hostname)
828828

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

0 commit comments

Comments
 (0)