Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7c0cd32

Browse files
committed
Move description from last sentence to top
1 parent6dd66a2 commit7c0cd32

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎Doc/library/socket.rst‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -896,14 +896,13 @@ The :mod:`socket` module also offers various network-related services:
896896

897897
..function::getfqdn([name])
898898

899-
Return a fully qualified domain name for *name*. If *name* isomitted orempty,
900-
it is interpreted asthelocal host (as returned by:func:`gethostname`).
899+
Return a fully qualified domain name for *name*. If *name* isempty orequal to
900+
``'0.0.0.0'``,thehostname from:func:`gethostname` is returned.
901901
To find the fully qualified name, the
902902
hostname returned by:func:`gethostbyaddr` is checked, followed by aliases for the
903903
host, if available. The first name which includes a period is selected. In
904904
case no fully qualified domain name is available and *name* was provided,
905-
it is returned unchanged. If *name* was empty or equal to ``'0.0.0.0'``,
906-
the hostname from:func:`gethostname` is returned.
905+
it is returned unchanged.
907906

908907

909908
..function::gethostbyname(hostname)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp