[Cython] Failure with asarray(memoryview) on Python 2.4

mark florisson markflorisson88 at gmail.com
Mon Jun 11 22:02:26 CEST 2012


On 11 June 2012 20:55, Pauli Virtanen <pav at iki.fi> wrote:
> 11.06.2012 21:23, Pauli Virtanen kirjoitti:
>> Hi,
>>
>> 11.06.2012 21:16, mark florisson kirjoitti:
>> [clip]
>>> Yeah, there was some weird bug with PyIndex_Check() not operating
>>> properly. Could you retry with the latest master?
>>
>> Doesn't seem to work in 5a0effd0  :(
> [clip]
>
> Uhh, Numpy header arrayobject.h -> npy_common.h contains this
>
> #if (PY_VERSION_HEX < 0x02050000)
> ...
> #undef PyIndex_Check
> #define PyIndex_Check(op) 0
> ...
>
> which nicely overrides the fixed PyIndex_Check defined by Cython.
> Time to fix that, I guess.
>
> I don't see reasonable ways to work around this in Cython...
>
>        Pauli
>
> _______________________________________________
> cython-devel mailing list
> cython-devel at python.org
> http://mail.python.org/mailman/listinfo/cython-devel

Ah, thanks! Stefan and I were kind of baffled by PyIndex_Check
failing, I guess we should have run cpp on our source :)


More information about the cython-devel mailing list