From 52498463d10c49adcf160d12cb838ccbd386cdba Mon Sep 17 00:00:00 2001 From: brittanyrey Date: Sun, 29 Mar 2020 02:09:47 -0400 Subject: [PATCH] Update documentation example The existing example code does not work in python 3.7, updating the given example --- source/docs/functions/memoryview.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/docs/functions/memoryview.rst b/source/docs/functions/memoryview.rst index d10bb7b..e94deec 100644 --- a/source/docs/functions/memoryview.rst +++ b/source/docs/functions/memoryview.rst @@ -28,12 +28,12 @@ See also buffer(). Example ======= ->>> memoryview('foo') +>>> memoryview(b'foo') ->>> m = memoryview('foo') +>>> m = memoryview(b'foo') >>> m[:] ->>> m[1] +>>> chr(m[1]) 'o' See Also