send_bytes obviously needs bytes...

This commit is contained in:
Georg Brandl 2010-10-29 05:22:17 +00:00
parent 2b15bd810d
commit 30176890d0
1 changed files with 2 additions and 2 deletions

View 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)