send_bytes obviously needs bytes...
This commit is contained in:
parent
2b15bd810d
commit
30176890d0
|
@ -792,9 +792,9 @@ For example:
|
||||||
>>> a.send([1, 'hello', None])
|
>>> a.send([1, 'hello', None])
|
||||||
>>> b.recv()
|
>>> b.recv()
|
||||||
[1, 'hello', None]
|
[1, 'hello', None]
|
||||||
>>> b.send_bytes('thank you')
|
>>> b.send_bytes(b'thank you')
|
||||||
>>> a.recv_bytes()
|
>>> a.recv_bytes()
|
||||||
'thank you'
|
b'thank you'
|
||||||
>>> import array
|
>>> import array
|
||||||
>>> arr1 = array.array('i', range(5))
|
>>> arr1 = array.array('i', range(5))
|
||||||
>>> arr2 = array.array('i', [0] * 10)
|
>>> arr2 = array.array('i', [0] * 10)
|
||||||
|
|
Loading…
Reference in New Issue