Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cccb81d

Browse files
miss-islingtonOriHochhugovk
authored
[3.11] socket documentation fix - rename triple to 3-tuple (GH-24722) (#109074)
Co-authored-by: Ori Hoch <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent f6d70e9 commit cccb81d

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

882882
Translate a host name to IPv4 address format, extended interface. Return a
883-
triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the host's
883+
3-tuple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the host's
884884
primary host name, *aliaslist* is a (possibly
885885
empty) list of alternative host names for the same address, and *ipaddrlist* is
886886
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:
908908

909909
.. function:: gethostbyaddr(ip_address)
910910

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

0 commit comments

Comments
 (0)