Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b22bf80d
Commit
b22bf80d
authored
Jul 19, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #9304: fix example in the 2.x memoryview documentation.
parent
0b9201fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/library/stdtypes.rst
Doc/library/stdtypes.rst
+2
-2
No files found.
Doc/library/stdtypes.rst
View file @
b22bf80d
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment