summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-04-06 08:18:15 (GMT)
committerGeorg Brandl <georg@python.org>2010-04-06 08:18:15 (GMT)
commitabe448c49b4d986c279de3835b0676ccf8b6c57f (patch)
tree2cb7197c5a3beea8150fdc58430ea6cb3e3fb8de /Doc
parente266d3e804b0f27aa4f63d321372ed926cc45aab (diff)
downloadcpython-abe448c49b4d986c279de3835b0676ccf8b6c57f.zip
cpython-abe448c49b4d986c279de3835b0676ccf8b6c57f.tar.gz
cpython-abe448c49b4d986c279de3835b0676ccf8b6c57f.tar.bz2
#8320: document return value of recv_into().
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/socket.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 98dcceb..6733156 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -669,10 +669,10 @@ correspond to Unix system calls applicable to sockets.
.. method:: socket.recv_into(buffer[, nbytes[, flags]])
Receive up to *nbytes* bytes from the socket, storing the data into a buffer
- rather than creating a new string. If *nbytes* is not specified (or 0),
- receive up to the size available in the given buffer. See the Unix manual page
- :manpage:`recv(2)` for the meaning of the optional argument *flags*; it defaults
- to zero.
+ rather than creating a new string. If *nbytes* is not specified (or 0),
+ receive up to the size available in the given buffer. Returns the number of
+ bytes received. See the Unix manual page :manpage:`recv(2)` for the meaning
+ of the optional argument *flags*; it defaults to zero.
.. versionadded:: 2.5