]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
socket documentation fix - rename triple to 3-tuple (#24722)
authorOri Hoch <ori@uumpa.com>
Thu, 7 Sep 2023 10:33:02 +0000 (13:33 +0300)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2023 10:33:02 +0000 (10:33 +0000)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/library/socket.rst

index 4f220e8a098979ae369417a074ee9f8f4538aaee..83957c8799044070fa639f54a52eaf08ae0c5aed 100644 (file)
@@ -979,7 +979,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
@@ -1007,7 +1007,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