Visitar URL original
gh-60856: Be explicit about localhost for socket.getfqdn by slateny · Pull Request #93451 · python/cpython · GitHub
Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Change to single quotes and add `
  • Loading branch information
slateny committed Mar 3, 2024
commit 6bb37ce7f76f30172db672024a4ee8d319aa29ea
4 changes: 2 additions & 2 deletions Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,8 @@ The :mod:`socket` module also offers various network-related services:
hostname returned by :func:`gethostbyaddr` is checked, followed by aliases for the
host, if available. The first name which includes a period is selected. In
case no fully qualified domain name is available and *name* was provided,
it is returned unchanged. If *name* is empty, or equal to "0.0.0.0", "::", or "",
the hostname from :func:`gethostname` is returned.
it is returned unchanged. If *name* is empty, or equal to ``'0.0.0.0'``, ``'::'``,
or ``''``, the hostname from :func:`gethostname` is returned.


.. function:: gethostbyname(hostname)
Expand Down