From: Benjamin Peterson Date: Tue, 23 Jun 2009 03:09:33 +0000 (+0000) Subject: must be bytes X-Git-Tag: v3.1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5250401bd0223ce03f9e5ea36edd13798ba77187;p=python must be bytes --- 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'