[Cython] buffer interface problem
Dag Sverre Seljebotn
dagss at student.matnat.uio.no
Fri Nov 14 13:08:22 CET 2008
Uwe Schmitt wrote:
>
> Hi,
>
> I got a problem with the following typedef
>
> ctypedef np.ndarray[np.double_t, ndim=1, negative_indices=False,
> mode="c"] ndarray
<snip Cython exception>
>
> Is this a bug ?
Yes, Cython producing an exception during compilation is always a bug.
I must shamefully admit that this reminds me that I put "buffer
typedefs" on my TODO list in summer, and never got around to do it, and
completely forgot about it. This should work of course, though an
acceptable first step is to disallow it in a more graceful fashion.
Unfortunately I don't have much time for either now...
This is now ticket http://trac.cython.org/cython_trac/ticket/117
Dag Sverre
More information about the Cython-dev
mailing list