Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
71ede504
Commit
71ede504
authored
Oct 06, 2014
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes #14303: socket.makefile() does not call dup() anymore on the socket fd.
parent
8b14dd39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Doc/library/socket.rst
Doc/library/socket.rst
+5
-3
No files found.
Doc/library/socket.rst
View file @
71ede504
...
...
@@ -661,9 +661,11 @@ 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 :c:func:`dup`\ ped version of the socket file descriptor, so the
file object and socket object may be closed or garbage-collected independently.
described in :ref:`bltin-file-objects`.) The file object does not close the
socket explicitly when its :meth:`close` method is called, but only removes
its reference to the socket object, so that the socket will be closed if it
is not referenced from anywhere else.
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment