]> granicus.if.org Git - python/commitdiff
Patch from Tim Hatch: Make socket setblocking <-> settimeout examples symmetric.
authorGeorg Brandl <georg@python.org>
Sun, 25 Apr 2010 10:57:15 +0000 (10:57 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 25 Apr 2010 10:57:15 +0000 (10:57 +0000)
Doc/library/socket.rst

index 6c7cffcd1b117eb5cce7fbc49737773f080d6555..2de867d4daa3aa8429667e970f34bd1f6b3218be 100644 (file)
@@ -714,7 +714,7 @@ correspond to Unix system calls applicable to sockets.
    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)``.