#7137: fix makefile() documentation to match the new parameters.
This commit is contained in:
parent
af7adad51d
commit
95a75046c0
|
@ -564,17 +564,17 @@ correspond to Unix system calls applicable to sockets.
|
||||||
is system-dependent (usually 5).
|
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
|
.. index:: single: I/O control; buffering
|
||||||
|
|
||||||
Return a :dfn:`file object` associated with the socket. (File objects are
|
Return a :dfn:`file object` associated with the socket. (File objects are
|
||||||
described in :ref:`bltin-file-objects`.) The file object
|
described in :ref:`bltin-file-objects`.) The file object references a
|
||||||
references a :cfunc:`dup`\ ped version of the socket file descriptor, so the
|
:cfunc:`dup`\ ped version of the socket file descriptor, so the file object
|
||||||
file object and socket object may be closed or garbage-collected independently.
|
and socket object may be closed or garbage-collected independently. The
|
||||||
The socket must be in blocking mode (it can not have a timeout). The optional
|
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
|
arguments are interpreted the same way as by the built-in :func:`open`
|
||||||
:func:`file` function.
|
function.
|
||||||
|
|
||||||
|
|
||||||
.. method:: socket.recv(bufsize[, flags])
|
.. method:: socket.recv(bufsize[, flags])
|
||||||
|
|
Loading…
Reference in New Issue