summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-02-18 15:34:32 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-02-18 15:34:32 (GMT)
commit31a252b7f3d4fd5af91d388daac6fce6c3115a22 (patch)
tree982c60aea5fe9431338150e3a7cf405af3c43ae0 /Doc
parenta2b64e630e54027b5f49bf9f6cbdd4efb51aba4e (diff)
parent3fe64d0c5ca5f1dc9723b9ef436d033f390b19f0 (diff)
downloadcpython-31a252b7f3d4fd5af91d388daac6fce6c3115a22.zip
cpython-31a252b7f3d4fd5af91d388daac6fce6c3115a22.tar.gz
cpython-31a252b7f3d4fd5af91d388daac6fce6c3115a22.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