summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-11-03 20:43:20 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-11-03 20:43:20 (GMT)
commitaccb38c74fb66ab6cfbfd35af05892efb1946d08 (patch)
treee9a362f5d24cfff71bac02e0e0c3afeee0ccdaeb /Doc/library
parentb9828f67b8d012093cd67e8b0679dc55864cf94e (diff)
downloadcpython-accb38c74fb66ab6cfbfd35af05892efb1946d08.zip
cpython-accb38c74fb66ab6cfbfd35af05892efb1946d08.tar.gz
cpython-accb38c74fb66ab6cfbfd35af05892efb1946d08.tar.bz2
clarify by splitting into multiple paragraphs
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/socket.rst14
1 files changed, 9 insertions, 5 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 1ee2875..a7e746e 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -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)