]> granicus.if.org Git - python/commitdiff
send_bytes obviously needs bytes...
authorGeorg Brandl <georg@python.org>
Fri, 29 Oct 2010 05:22:17 +0000 (05:22 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 29 Oct 2010 05:22:17 +0000 (05:22 +0000)
Doc/library/multiprocessing.rst

index aa1e752bc81c86b2f73a58c3baff36122cd2d3fe..8fec5a340886796eb672d3afcebf7c9ce2bff9b2 100644 (file)
@@ -792,9 +792,9 @@ For example:
     >>> 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)