mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
must be bytes
This commit is contained in:
parent
b48f63433e
commit
5250401bd0
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue