summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-23 03:09:33 +0000
committerBenjamin Peterson <benjamin@python.org>2009-06-23 03:09:33 +0000
commit5250401bd0223ce03f9e5ea36edd13798ba77187 (patch)
tree1fdf4a96b9e5336378dd88c90ba0843ab9dcf559 /Doc
parentb48f63433eca50588597d70cfe140e07e3bc085f (diff)
downloadcpython-git-5250401bd0223ce03f9e5ea36edd13798ba77187.tar.gz
must be bytes
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index a526cf31c7..bd02b37360 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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'