Re: [sage-devel] Re: Fastest way of converting a C array into a Python list

2011-11-14 Thread Florent Hivert
On Mon, Nov 14, 2011 at 03:15:41PM -0800, Simon King wrote: > Hi Florent, > > On 15 Nov., 00:05, Florent Hivert wrote: > > For the record, I think I answered all of this on #12029. > > Your code seems to work, but you didn't answer my question. Since the > only difference to my code is your use

Re: [sage-devel] Re: Fastest way of converting a C array into a Python list

2011-11-14 Thread Florent Hivert
On Mon, Nov 14, 2011 at 03:07:29PM -0800, Simon King wrote: > On 14 Nov., 23:54, Simon King wrote: > > But why am I still getting segfaults with the following code, > > where I manually add a reference? > >         cdef int i, o > >         cdef list L = PyList_New(self._len) > >         for  i fr