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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5250401bd0223ce03f9e5ea36edd13798ba77187;p=thirdparty%2FPython%2Fcpython.git must be bytes --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index a526cf31c7bb..bd02b37360a3 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'