[Python-checkins] cpython (3.2): clarify recv* are blocking operations; thanks to Chris Kogelnik from docs@

sandro.tosi python-checkins at python.org
Sat Jan 7 17:59:12 CET 2012


http://hg.python.org/cpython/rev/1d8286235da5
changeset: 74289:1d8286235da5
branch: 3.2
parent: 74286:b39b65cdf54e
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sat Jan 07 17:56:58 2012 +0100
summary:
 clarify recv* are blocking operations; thanks to Chris Kogelnik from docs@
files:
 Doc/library/multiprocessing.rst | 9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -727,7 +727,8 @@
 .. method:: recv()
 
 Return an object sent from the other end of the connection using
- :meth:`send`. Raises :exc:`EOFError` if there is nothing left to receive
+ :meth:`send`. Blocks until there its something to receive. Raises
+ :exc:`EOFError` if there is nothing left to receive
 and the other end was closed.
 
 .. method:: fileno()
@@ -761,7 +762,8 @@
 .. method:: recv_bytes([maxlength])
 
 Return a complete message of byte data sent from the other end of the
- connection as a string. Raises :exc:`EOFError` if there is nothing left
+ connection as a string. Blocks until there is something to receive.
+ Raises :exc:`EOFError` if there is nothing left
 to receive and the other end has closed.
 
 If *maxlength* is specified and the message is longer than *maxlength*
@@ -771,7 +773,8 @@
 .. method:: recv_bytes_into(buffer[, offset])
 
 Read into *buffer* a complete message of byte data sent from the other end
- of the connection and return the number of bytes in the message. Raises
+ of the connection and return the number of bytes in the message. Blocks
+ until there is something to receive. Raises
 :exc:`EOFError` if there is nothing left to receive and the other end was
 closed.
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /