diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-08-14 05:29:49 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-08-14 05:29:49 (GMT) |
commit | 7ec7fc4c3b67f77654b6964a37500d1421dc7f04 (patch) | |
tree | bc086cdab03c59a2eb2f527684cc6ed12c896543 /Doc/library/socket.rst | |
parent | 85674936c748379fb57c197ac01cdb1dde0431a5 (diff) | |
parent | 388c945e9735864bb75f10ecfa22528c91b6a56c (diff) | |
download | cpython-7ec7fc4c3b67f77654b6964a37500d1421dc7f04.zip cpython-7ec7fc4c3b67f77654b6964a37500d1421dc7f04.tar.gz cpython-7ec7fc4c3b67f77654b6964a37500d1421dc7f04.tar.bz2 |
#12725: merge with 3.2.
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r-- | Doc/library/socket.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index afc674c..f587977 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -513,14 +513,14 @@ The module :mod:`socket` exports the following constants and functions: .. function:: getdefaulttimeout() - Return the default timeout in floating seconds for new socket objects. A value + Return the default timeout in seconds (float) for new socket objects. A value of ``None`` indicates that new socket objects have no timeout. When the socket module is first imported, the default is ``None``. .. function:: setdefaulttimeout(timeout) - Set the default timeout in floating seconds for new socket objects. When + Set the default timeout in seconds (float) for new socket objects. When the socket module is first imported, the default is ``None``. See :meth:`~socket.settimeout` for possible values and their respective meanings. @@ -675,7 +675,7 @@ correspond to Unix system calls applicable to sockets. .. method:: socket.gettimeout() - Return the timeout in floating seconds associated with socket operations, + Return the timeout in seconds (float) associated with socket operations, or ``None`` if no timeout is set. This reflects the last call to :meth:`setblocking` or :meth:`settimeout`. |