summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-29 05:22:17 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-29 05:22:17 (GMT)
commit30176890d094cbe398c1f8669de4b399f2719751 (patch)
treeb44837f3a341a9f03bee8e08c8445c8472844736 /Doc
parent2b15bd810deb7172ffa62643a78a6611d4ba928b (diff)
downloadcpython-30176890d094cbe398c1f8669de4b399f2719751.zip
cpython-30176890d094cbe398c1f8669de4b399f2719751.tar.gz
cpython-30176890d094cbe398c1f8669de4b399f2719751.tar.bz2
send_bytes obviously needs bytes...
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/multiprocessing.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index aa1e752..8fec5a3 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -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)