]> granicus.if.org Git - python/commitdiff
#8320: document return value of recv_into().
authorGeorg Brandl <georg@python.org>
Tue, 6 Apr 2010 08:18:15 +0000 (08:18 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 6 Apr 2010 08:18:15 +0000 (08:18 +0000)
Doc/library/socket.rst

index 98dcceb52d8197703513dfc6dc4cd90fa080d212..67331562f3c231a868ae8879ebecd8247bc61f1f 100644 (file)
@@ -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