summaryrefslogtreecommitdiffstats
path: root/Doc/library/socket.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-10-22 15:16:26 (GMT)
committerGeorg Brandl <georg@python.org>2009-10-22 15:16:26 (GMT)
commit95a75046c0889eec8ea807035387432014f336df (patch)
tree5af6833715425b6983a9462e45420f5a90fc9a16 /Doc/library/socket.rst
parentaf7adad51d149e66ee3eb66c1765914f0fd7f905 (diff)
downloadcpython-95a75046c0889eec8ea807035387432014f336df.zip
cpython-95a75046c0889eec8ea807035387432014f336df.tar.gz
cpython-95a75046c0889eec8ea807035387432014f336df.tar.bz2
#7137: fix makefile() documentation to match the new parameters.
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r--Doc/library/socket.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index dc4d897..d9045ed 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -564,17 +564,17 @@ correspond to Unix system calls applicable to sockets.
is system-dependent (usually 5).
-.. method:: socket.makefile([mode[, bufsize]])
+.. method:: socket.makefile(mode='r', buffering=None, *, encoding=None, newline=None)
.. index:: single: I/O control; buffering
Return a :dfn:`file object` associated with the socket. (File objects are
- described in :ref:`bltin-file-objects`.) The file object
- references a :cfunc:`dup`\ ped version of the socket file descriptor, so the
- file object and socket object may be closed or garbage-collected independently.
- The socket must be in blocking mode (it can not have a timeout). The optional
- *mode* and *bufsize* arguments are interpreted the same way as by the built-in
- :func:`file` function.
+ described in :ref:`bltin-file-objects`.) The file object references a
+ :cfunc:`dup`\ ped version of the socket file descriptor, so the file object
+ and socket object may be closed or garbage-collected independently. The
+ socket must be in blocking mode (it can not have a timeout). The optional
+ arguments are interpreted the same way as by the built-in :func:`open`
+ function.
.. method:: socket.recv(bufsize[, flags])