]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
clarify by splitting into multiple paragraphs
authorBenjamin Peterson <benjamin@python.org>
Mon, 3 Nov 2008 20:43:20 +0000 (20:43 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 3 Nov 2008 20:43:20 +0000 (20:43 +0000)
Doc/library/socket.rst

index 1ee2875695ea5d8489f214086754f600755b8738..a7e746e136be100450637c7b6f6f2e9d435873c6 100644 (file)
@@ -276,11 +276,15 @@ The module :mod:`socket` exports the following constants and functions:
 .. function:: gethostname()
 
    Return a string containing the hostname of the machine where  the Python
-   interpreter is currently executing. If you want to know the current machine's IP
-   address, you may want to use ``gethostbyname(gethostname())``. This operation
-   assumes that there is a valid address-to-host mapping for the host, and the
-   assumption does not always hold. Note: :func:`gethostname` doesn't always return
-   the fully qualified domain name; use ``getfqdn()`` (see above).
+   interpreter is currently executing.
+
+   If you want to know the current machine's IP address, you may want to use
+   ``gethostbyname(gethostname())``. This operation assumes that there is a
+   valid address-to-host mapping for the host, and the assumption does not
+   always hold.
+
+   Note: :func:`gethostname` doesn't always return the fully qualified domain
+   name; use ``getfqdn()`` (see above).
 
 
 .. function:: gethostbyaddr(ip_address)