Re: [Cython] buffer bug

2011-10-02 Thread mark florisson
On 2 October 2011 12:04, Dag Sverre Seljebotn wrote: > On 10/02/2011 12:38 PM, mark florisson wrote: >> >> Hey, >> >> I'm unable to login in trac, but I found a bug in the buffer support: >> >> cimport cython >> cimport numpy as np >> >> @cython.boundscheck(False) >> @cython.wraparound(False) >> c

Re: [Cython] buffer bug

2011-10-02 Thread Dag Sverre Seljebotn
On 10/02/2011 12:38 PM, mark florisson wrote: Hey, I'm unable to login in trac, but I found a bug in the buffer support: cimport cython cimport numpy as np @cython.boundscheck(False) @cython.wraparound(False) cdef void func(np.ndarray[np.float32_t, ndim=2] a) nogil: pass This calls __Pyx

[Cython] buffer bug

2011-10-02 Thread mark florisson
Hey, I'm unable to login in trac, but I found a bug in the buffer support: cimport cython cimport numpy as np @cython.boundscheck(False) @cython.wraparound(False) cdef void func(np.ndarray[np.float32_t, ndim=2] a) nogil: pass This calls __Pyx_GetBufferAndValidate, which needs the GIL. When