summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-02-18 15:34:00 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-02-18 15:34:00 (GMT)
commit3fe64d0c5ca5f1dc9723b9ef436d033f390b19f0 (patch)
treeb9ed163be92fd25abc23550f9c052447b1a8a804 /Doc
parentc12fef9aa3282144dba83e0cd543bb510de6a745 (diff)
downloadcpython-3fe64d0c5ca5f1dc9723b9ef436d033f390b19f0.zip
cpython-3fe64d0c5ca5f1dc9723b9ef436d033f390b19f0.tar.gz
cpython-3fe64d0c5ca5f1dc9723b9ef436d033f390b19f0.tar.bz2
Issue #16915: Clarify that mode parameter of socket.makefile() does not accept
the same values as open().
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/socket.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 4276478..a0b02c0 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -1006,7 +1006,8 @@ to sockets.
Return a :term:`file object` associated with the socket. The exact returned
type depends on the arguments given to :meth:`makefile`. These arguments are
- interpreted the same way as by the built-in :func:`open` function.
+ interpreted the same way as by the built-in :func:`open` function, except
+ the only supported *mode* values are ``'r'`` (default), ``'w'`` and ``'b'``.
The socket must be in blocking mode; it can have a timeout, but the file
object's internal buffer may end up in an inconsistent state if a timeout