Kurt Smith wrote: > I wrote up the ideas Dag and I have been knocking around (and the good > input from others) about passing python buffers to external code. The > implementation of this CEP would be one part of the GSoC project we're > proposing. You can find it here: > > http://wiki.cython.org/enhancements/buffer_external > > It is fairly broad right now, please help us fill in the gaps. > > Any input is welcome -- thanks for the feedback so far!
I added two sections, implementation and syntax. I) I think cdef extern double func(object[int, ndim=2, mode="strided"] arr) really makes it seem like a PyObject* is passed, which is not the case. The wiki page now has my alternatives in it. But this question doesn't need to be settled before the application is submitted. (Note that in the current buffer syntax when "object" is the container type, the mode defaults to "full". ndarray makes mode default to "strided" as NumPy arrays are always in that format. See PEP 3118 for more information on the buffer modes.) II) I think we/you should start writing the project description/plan; and then I think much of the Fortran part of the story should be moved there. Then the project description should be the first entry point for people interested in your project and this CEP only for discussing quite targeted Cython<->C points. But it's fine as it is until a project description is in place. -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
