From 5250401bd0223ce03f9e5ea36edd13798ba77187 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 23 Jun 2009 03:09:33 +0000 Subject: must be bytes --- Doc/library/stdtypes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index a526cf3..bd02b37 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' -- cgit v0.12