[Pyrex] Please support C++
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Oct 18 23:59:08 CEST 2005
David M. Cooke wrote:
> Greg asked me to post an example:
>
> cdef extern from "Numeric/arrayobject.h":
> ArrayType PyArray_ContiguousFromObject(object op, ArrayTypes type,
This is not Pyrex's fault, it's yours. You've given
PyArray_ContiguousFromObject a different return type
than it has in arrayobject.h. To match the declaration
in the .h file, you need
object PyArray_ContiguousFromObject(object op, ...)
Greg
More information about the Pyrex
mailing list