Re: [Cython] memoryviews from C arrays

2011-11-23 Thread mark florisson
Yes, but I'm running some tests on hudson. On 23 November 2011 21:46, Robert Bradshaw wrote: > On Wed, Nov 23, 2011 at 12:21 PM, mark florisson > wrote: > > Hey, > > > > Currently when we want to convert C arrays to memoryview slices we have > to > > do this: > > > > cdef int array[5][4] > > cde

Re: [Cython] memoryviews from C arrays

2011-11-23 Thread Robert Bradshaw
On Wed, Nov 23, 2011 at 12:21 PM, mark florisson wrote: > Hey, > > Currently when we want to convert C arrays to memoryview slices we have to > do this: > > cdef int array[5][4] > cdef int[:, :] slice = array > I'd like to be able to write > cdef int array[5][4] > cdef int[:, :] slice > slice =

[Cython] memoryviews from C arrays

2011-11-23 Thread mark florisson
Hey, Currently when we want to convert C arrays to memoryview slices we have to do this: cdef int array[5][4] cdef int[:, :] slice = array I'd like to be able to write cdef int array[5][4] cdef int[:, :] slice slice = array # and slice = array I think that would be convenient, especially i

Re: [Cython] Segmentation fault with generator expressions in a cdef class (Cython 0.15.1)

2011-11-23 Thread Vitja Makarov
2011/11/23 Rauli Ruohonen : > Hi, > > I don't know if this has been reported yet (didn't notice a ticket > with a quick look though), but I just downloaded and installed the > latest Cython tarball and got a segfault this way: > > rauli@ubuntu:~/example$ ls > bar.py  foo.pyx > rauli@ubuntu:~/exampl

[Cython] Segmentation fault with generator expressions in a cdef class (Cython 0.15.1)

2011-11-23 Thread Rauli Ruohonen
Hi, I don't know if this has been reported yet (didn't notice a ticket with a quick look though), but I just downloaded and installed the latest Cython tarball and got a segfault this way: rauli@ubuntu:~/example$ ls bar.py foo.pyx rauli@ubuntu:~/example$ python bar.py Segmentation fault rauli@ub