Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: mark florisson <markflorisson88-Re5JQEeQqe8AvxtiuMwx3w <at> public.gmane.org>
Subject: Re: [Cython] Failure with asarray(memoryview) on Python 2.4
Newsgroups: gmane.comp.python.cython.devel
Date: Monday 11th June 2012 20:02:26 UTC (over 4 years ago)
On 11 June 2012 20:55, Pauli Virtanen  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
> [email protected]
> 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 :)
_______________________________________________
cython-devel mailing list
[email protected]
http://mail.python.org/mailman/listinfo/cython-devel
 
CD: 3ms