diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-05-06 23:13:38 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-05-06 23:13:38 +0200 |
commit | f688b4d84934694607e1365a0a4780eda1a30e58 (patch) | |
tree | 848517bb25ba365a7542abc5339d6cd94d2a3cbc | |
parent | 17565628979f3e2a971db181c727091edf5818a0 (diff) | |
download | cython-f688b4d84934694607e1365a0a4780eda1a30e58.tar.gz |
Mark "ndarray.shape" and "ndarray.strides" as not requiring the GIL.
-rw-r--r-- | Cython/Includes/numpy/__init__.pxd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Includes/numpy/__init__.pxd b/Cython/Includes/numpy/__init__.pxd index 5f6b10c39..60ac95042 100644 --- a/Cython/Includes/numpy/__init__.pxd +++ b/Cython/Includes/numpy/__init__.pxd @@ -261,11 +261,11 @@ cdef extern from "numpy/arrayobject.h": return PyArray_NDIM(self) @property - cdef inline npy_intp *shape(self): + cdef inline npy_intp *shape(self) nogil: return PyArray_DIMS(self) @property - cdef inline npy_intp *strides(self): + cdef inline npy_intp *strides(self) nogil: return PyArray_STRIDES(self) @property |