[Pyrex] Please support C++

David M. Cooke cookedm at physics.mcmaster.ca
Wed Oct 19 00:39:10 CEST 2005


On Oct 18, 2005, at 17:59, Greg Ewing wrote:

> 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, ...)

True enough, but that doesn't help: I can't cast it to ArrayType with  
<ArrayType>, because PyObject * is used instead. But it looks like  
Lenard has that solved.

-- 
|>|\/|<
/------------------------------------------------------------------\
|David M. Cooke              http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca




More information about the Pyrex mailing list