Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
213720e7
Commit
213720e7
authored
Nov 18, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove incorrect examples from memory view documentation.
Closes #2664.
parent
08faa33c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
docs/src/userguide/memoryviews.rst
docs/src/userguide/memoryviews.rst
+2
-7
No files found.
docs/src/userguide/memoryviews.rst
View file @
213720e7
...
...
@@ -56,16 +56,11 @@ A complete 3D view::
cdef int[:,:,:] view3D = exporting_object
A 2D view that restricts the first dimension of a buffer to 100 rows
starting at the second (index 1) and then skips every second (odd) row::
cdef int[1:102:2,:] partial_view = exporting_object
This also works conveniently as function arguments:
They also work conveniently as function arguments:
.. code-block:: cython
def process_3d_buffer(int[
1:102:2
,:] view not None):
def process_3d_buffer(int[
:
,:] view not None):
...
The ``not None`` declaration for the argument automatically rejects
...
...
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