diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-09-06 20:08:02 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-10-08 22:32:18 +0200 |
commit | 3c059640231558d62c3ef92a93e73c923ccf6fea (patch) | |
tree | 6eb1f699f8f0193e6826f87b0ebfcf4531461b52 | |
parent | baa08c56d2782f563c2053a2d7a7d3910f8201c5 (diff) | |
download | cython-3c059640231558d62c3ef92a93e73c923ccf6fea.tar.gz |
Fix MemoryView.get_slice_from_memview() to propagate exceptions.
-rw-r--r-- | Cython/Utility/MemoryView.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/MemoryView.pyx b/Cython/Utility/MemoryView.pyx index 930c2db70..279e05e63 100644 --- a/Cython/Utility/MemoryView.pyx +++ b/Cython/Utility/MemoryView.pyx @@ -1050,7 +1050,7 @@ cdef memoryview_fromslice({{memviewslice_name}} memviewslice, @cname('__pyx_memoryview_get_slice_from_memoryview') cdef {{memviewslice_name}} *get_slice_from_memview(memoryview memview, - {{memviewslice_name}} *mslice): + {{memviewslice_name}} *mslice) except NULL: cdef _memoryviewslice obj if isinstance(memview, _memoryviewslice): obj = memview |