[Python-checkins] r46614 - python/trunk/Doc/lib/libsocket.tex
andrew.kuchling
python-checkins at python.org
Sat Jun 3 20:33:36 CEST 2006
Author: andrew.kuchling
Date: Sat Jun 3 20:33:35 2006
New Revision: 46614
Modified:
python/trunk/Doc/lib/libsocket.tex
Log:
[Bug #1475554] Strengthen text to say 'must' instead of 'should'
Modified: python/trunk/Doc/lib/libsocket.tex
==============================================================================
--- python/trunk/Doc/lib/libsocket.tex (original)
+++ python/trunk/Doc/lib/libsocket.tex Sat Jun 3 20:33:35 2006
@@ -548,7 +548,7 @@
The file object references a \cfunction{dup()}ped version of the
socket file descriptor, so the file object and socket object may be
closed or garbage-collected independently.
-The socket should be in blocking mode.
+The socket must be in blocking mode.
\index{I/O control!buffering}The optional \var{mode}
and \var{bufsize} arguments are interpreted the same way as by the
built-in \function{file()} function; see ``Built-in Functions''
@@ -647,7 +647,7 @@
blocking and timeout modes are shared between file descriptors and
socket objects that refer to the same network endpoint. A consequence
of this is that file objects returned by the \method{makefile()}
-method should only be used when the socket is in blocking mode; in
+method must only be used when the socket is in blocking mode; in
timeout or non-blocking mode file operations that cannot be completed
immediately will fail.
More information about the Python-checkins
mailing list