Skip to content

Commit 2ce2612

Browse files
miss-islingtonOriHochhugovk
authored
[3.12] socket documentation fix - rename triple to 3-tuple (GH-24722) (#109073)
socket documentation fix - rename triple to 3-tuple (GH-24722) (cherry picked from commit 6b15ff5) Co-authored-by: Ori Hoch <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 82f5291 commit 2ce2612

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

981981
Translate a host name to IPv4 address format, extended interface. Return a
982-
triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the host's
982+
3-tuple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the host's
983983
primary host name, *aliaslist* is a (possibly
984984
empty) list of alternative host names for the same address, and *ipaddrlist* is
985985
a list of IPv4 addresses for the same interface on the same host (often but not
@@ -1007,7 +1007,7 @@ The :mod:`socket` module also offers various network-related services:
10071007

10081008
.. function:: gethostbyaddr(ip_address)
10091009

1010-
Return a triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the
1010+
Return a 3-tuple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the
10111011
primary host name responding to the given *ip_address*, *aliaslist* is a
10121012
(possibly empty) list of alternative host names for the same address, and
10131013
*ipaddrlist* is a list of IPv4/v6 addresses for the same interface on the same

0 commit comments

Comments
 (0)