Re: [Cython] memoryview refcount error

2014-01-31 Thread Syam Gadde
I've done some more digging here. It turns out the test case for this bug is simpler than I thought: import numpy cimport numpy def testfunc(): a = numpy.arange(12).reshape([3,4]) cdef numpy.int_t[:,:] a_view = a cdef numpy.int_t[:,:] b = a_view[:,:].T testfunc() The core issue is t

[Cython] memoryview refcount error

2014-01-28 Thread Syam Gadde
Hi again, I'm exploring the typed memoryview feature with numpy and encountered a refcount error. It seems to happen when I create a slice of a memoryview, and transpose it. If I don't do both, I don't get the refcount error. It happens in the error cleanup code. I suspect that any error