FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-60856: Be explicit about localhost for socket.getfqdn by slateny · Pull Request #93451 · python/cpython · GitHub

/ cpython Public
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL