must be bytes

This commit is contained in:
Benjamin Peterson 2009-06-23 03:09:33 +00:00
parent b48f63433e
commit 5250401bd0
1 changed files with 1 additions and 1 deletions

View File

@ -2342,7 +2342,7 @@ simple bytes or complex data structures.
>>> v = memoryview(data)
>>> v.readonly
False
>>> v[0] = 'z'
>>> v[0] = b'z'
>>> data
bytearray(b'zbcefg')
>>> v[1:4] = b'123'