summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-09-07 10:44:35 (GMT)
committerGitHub <noreply@github.com>2023-09-07 10:44:35 (GMT)
commitcccb81d29427e4e33169d2ca480ce2fc11df043c (patch)
tree145a6427e34cecd25665ca405c95db4c3516e517
parentf6d70e9a18873759ea1a68d749a79c3c11383a4d (diff)
downloadcpython-cccb81d29427e4e33169d2ca480ce2fc11df043c.zip
cpython-cccb81d29427e4e33169d2ca480ce2fc11df043c.tar.gz
cpython-cccb81d29427e4e33169d2ca480ce2fc11df043c.tar.bz2
[3.11] socket documentation fix - rename triple to 3-tuple (GH-24722) (#109074)
Co-authored-by: Ori Hoch <ori@uumpa.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
-rw-r--r--Doc/library/socket.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 2e12917..36151ca 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -880,7 +880,7 @@ 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 host's
+ 3-tuple ``(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
@@ -908,7 +908,7 @@ The :mod:`socket` module also offers various network-related services:
.. function:: gethostbyaddr(ip_address)
- Return a triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the
+ Return a 3-tuple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the
primary host name responding to the given *ip_address*, *aliaslist* is a
(possibly empty) list of alternative host names for the same address, and
*ipaddrlist* is a list of IPv4/v6 addresses for the same interface on the same