diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-07-19 18:10:42 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-07-19 18:10:42 (GMT) |
commit | b22bf80db4ec89b2f95581aca675e72fc3111c1f (patch) | |
tree | 6d5183a2d3f8b8b4d06ab1c065f7338e11e6b89b | |
parent | 0b9201fa1cf87af559e8bbe38082df9d834ef353 (diff) | |
download | cpython-b22bf80db4ec89b2f95581aca675e72fc3111c1f.zip cpython-b22bf80db4ec89b2f95581aca675e72fc3111c1f.tar.gz cpython-b22bf80db4ec89b2f95581aca675e72fc3111c1f.tar.bz2 |
Issue #9304: fix example in the 2.x memoryview documentation.
-rw-r--r-- | Doc/library/stdtypes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 827e6e4..0e90c18 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] <memory at 0x77ab28> - >>> 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: |