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

georg.brandl python-checkins at python.org
Sun Apr 25 12:57:15 CEST 2010


Author: georg.brandl
Date: Sun Apr 25 12:57:15 2010
New Revision: 80470

Log:
Patch from Tim Hatch: Make socket setblocking <-> settimeout examples symmetric.

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	Sun Apr 25 12:57:15 2010
@@ -714,7 +714,7 @@
    blocking mode.  In non-blocking mode, if a :meth:`recv` call doesn't find any
    data, or if a :meth:`send` call can't immediately dispose of the data, a
    :exc:`error` exception is raised; in blocking mode, the calls block until they
-   can proceed. ``s.setblocking(0)`` is equivalent to ``s.settimeout(0)``;
+   can proceed. ``s.setblocking(0)`` is equivalent to ``s.settimeout(0.0)``;
    ``s.setblocking(1)`` is equivalent to ``s.settimeout(None)``.
 
 


More information about the Python-checkins mailing list