diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-06-03 18:33:35 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-06-03 18:33:35 (GMT) |
commit | 794c89b678b7409ec86f2b66bd0a11fec329d93e (patch) | |
tree | 0b37445f023f58f3a77e9d481f36ad34812f9910 /Doc | |
parent | 29d530b3ef17741ec111c999faee5c71e74cf3d1 (diff) | |
download | cpython-794c89b678b7409ec86f2b66bd0a11fec329d93e.zip cpython-794c89b678b7409ec86f2b66bd0a11fec329d93e.tar.gz cpython-794c89b678b7409ec86f2b66bd0a11fec329d93e.tar.bz2 |
[Bug #1475554] Strengthen text to say 'must' instead of 'should'
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libsocket.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index c7b656d..8066528 100644 --- a/Doc/lib/libsocket.tex +++ b/Doc/lib/libsocket.tex @@ -548,7 +548,7 @@ are described in \ref{bltin-file-objects}, ``File Objects.'') 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 @@ Timeout mode internally sets the socket in non-blocking mode. The 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. |