mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #7631: Fix undefined references to the "built-in file object", which
has ceased to be.
This commit is contained in:
parent
6e40e27ecf
commit
4adb288f4e
5 changed files with 26 additions and 28 deletions
|
@ -575,14 +575,16 @@ correspond to Unix system calls applicable to sockets.
|
|||
|
||||
.. 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
|
||||
Return a :dfn:`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.
|
||||
|
||||
The returned 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).
|
||||
|
||||
|
||||
.. method:: socket.recv(bufsize[, flags])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue