summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-09-15 09:32:45 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-09-15 09:32:45 (GMT)
commit5aa0d1056047ffbca76e8c2a1d27dcefd3716aeb (patch)
tree55d004f27a5e8121e1259c9a90c0853fb249203a /Doc/library
parent872b79d02f97d7560d8a0c57d3665cdbefb98f5a (diff)
downloadcpython-5aa0d1056047ffbca76e8c2a1d27dcefd3716aeb.zip
cpython-5aa0d1056047ffbca76e8c2a1d27dcefd3716aeb.tar.gz
cpython-5aa0d1056047ffbca76e8c2a1d27dcefd3716aeb.tar.bz2
Improve docs for socket.makefile() and SocketIO
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/socket.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index c7d7ee3..e3c9723 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -622,10 +622,9 @@ correspond to Unix system calls applicable to sockets.
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).
+ Closing the file object won't close the socket unless there are no
+ remaining references to the socket. The socket must be in blocking mode
+ (it can not have a timeout).
.. method:: socket.recv(bufsize[, flags])