[Python-checkins] r85908 - python/branches/py3k/Doc/library/multiprocessing.rst

georg.brandl python-checkins at python.org
Fri Oct 29 07:22:17 CEST 2010


Author: georg.brandl
Date: Fri Oct 29 07:22:17 2010
New Revision: 85908

Log:
send_bytes obviously needs bytes...

Modified:
   python/branches/py3k/Doc/library/multiprocessing.rst

Modified: python/branches/py3k/Doc/library/multiprocessing.rst
==============================================================================
--- python/branches/py3k/Doc/library/multiprocessing.rst	(original)
+++ python/branches/py3k/Doc/library/multiprocessing.rst	Fri Oct 29 07:22:17 2010
@@ -792,9 +792,9 @@
     >>> a.send([1, 'hello', None])
     >>> b.recv()
     [1, 'hello', None]
-    >>> b.send_bytes('thank you')
+    >>> b.send_bytes(b'thank you')
     >>> a.recv_bytes()
-    'thank you'
+    b'thank you'
     >>> import array
     >>> arr1 = array.array('i', range(5))
     >>> arr2 = array.array('i', [0] * 10)


More information about the Python-checkins mailing list