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

Skip to content

[3.12] socket documentation fix - rename triple to 3-tuple (GH-24722) #109073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down