On 11 June 2012 20:55, Pauli Virtanen wrote:
> 11.06.2012 21:23, Pauli Virtanen kirjoitti:
>> 11.06.2012 21:16, mark florisson kirjoitti:
>>> 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 :(
> 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...
> cython-devel mailing list
Ah, thanks! Stefan and I were kind of baffled by PyIndex_Check
failing, I guess we should have run cpp on our source :)
cython-devel mailing list