[Python-checkins] r79822 - python/trunk/Doc/library/socket.rst

georg.brandl python-checkins at python.org
Tue Apr 6 10:18:15 CEST 2010


Author: georg.brandl
Date: Tue Apr  6 10:18:15 2010
New Revision: 79822

Log:
#8320: document return value of recv_into().

Modified:
   python/trunk/Doc/library/socket.rst

Modified: python/trunk/Doc/library/socket.rst
==============================================================================
--- python/trunk/Doc/library/socket.rst	(original)
+++ python/trunk/Doc/library/socket.rst	Tue Apr  6 10:18:15 2010
@@ -669,10 +669,10 @@
 .. 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
 


More information about the Python-checkins mailing list