Commit f688b4d8 authored by Stefan Behnel's avatar Stefan Behnel

Mark "ndarray.shape" and "ndarray.strides" as not requiring the GIL.

parent 17565628
......@@ -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
......
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