Commit 213720e7 authored by Stefan Behnel's avatar Stefan Behnel

Remove incorrect examples from memory view documentation.

Closes #2664.
parent 08faa33c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment