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
empty -> omitted
  • Loading branch information
slateny committed Mar 3, 2024
commit 025536e1e387307d9bd7532993a12697a4058c20
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 omitted, or equal to ``'0.0.0.0'``,
``'::'``, or ``''``, the hostname from :func:`gethostname` is returned.


.. function:: gethostbyname(hostname)
Expand Down