From: Antoine Pitrou Date: Mon, 19 Jul 2010 18:10:42 +0000 (+0000) Subject: Issue #9304: fix example in the 2.x memoryview documentation. X-Git-Tag: v2.7.1rc1~581 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b22bf80db4ec89b2f95581aca675e72fc3111c1f;p=python Issue #9304: fix example in the 2.x memoryview documentation. --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 827e6e4ffb..0e90c18727 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2574,7 +2574,7 @@ is generally interpreted as simple bytes. 'g' >>> v[1:4] - >>> str(v[1:4]) + >>> v[1:4].tobytes() 'bce' If the object the memoryview is over supports changing its data, the @@ -2612,7 +2612,7 @@ is generally interpreted as simple bytes. Return the data in the buffer as a list of integers. :: - >>> memoryview(b'abc').tolist() + >>> memoryview("abc").tolist() [97, 98, 99] There are also several readonly attributes available: