[Python-checkins] r67089 - python/trunk/Doc/library/socket.rst

benjamin.peterson python-checkins at python.org
Mon Nov 3 21:43:21 CET 2008


Author: benjamin.peterson
Date: Mon Nov 3 21:43:20 2008
New Revision: 67089
Log:
clarify by splitting into multiple paragraphs
Modified:
 python/trunk/Doc/library/socket.rst
Modified: python/trunk/Doc/library/socket.rst
==============================================================================
--- python/trunk/Doc/library/socket.rst	(original)
+++ python/trunk/Doc/library/socket.rst	Mon Nov 3 21:43:20 2008
@@ -276,11 +276,15 @@
 .. 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)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /