mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
fix error in memoryview example; thanks to kan lianlian from docs@
This commit is contained in:
parent
cd96b4f1ff
commit
c33ae06cbf
1 changed files with 1 additions and 1 deletions
|
@ -2375,7 +2375,7 @@ copying. Memory is generally interpreted as simple bytes.
|
|||
bytearray(b'zbcefg')
|
||||
>>> v[1:4] = b'123'
|
||||
>>> data
|
||||
bytearray(b'a123fg')
|
||||
bytearray(b'z123fg')
|
||||
>>> v[2] = b'spam'
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in <module>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue