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

Pauli Virtanen pav at iki.fi
Mon Jun 11 21:55:57 CEST 2012


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



More information about the cython-devel mailing list