Re: [Cython] Upcoming issues with NumPy deprecated APIs and Cython's sizeof checks

2012-01-31 Thread mark florisson
On 31 January 2012 21:11, Dag Sverre Seljebotn wrote: > On 01/31/2012 09:53 PM, mark florisson wrote: >> >> On 31 January 2012 15:40, Dag Sverre Seljebotn >>  wrote: >>> >>> On 01/31/2012 03:29 PM, mark florisson wrote: On 30 January 2012 21:03, Lisandro Dalcin    wrote: >

Re: [Cython] Upcoming issues with NumPy deprecated APIs and Cython's sizeof checks

2012-01-31 Thread Dag Sverre Seljebotn
On 01/31/2012 09:53 PM, mark florisson wrote: On 31 January 2012 15:40, Dag Sverre Seljebotn wrote: On 01/31/2012 03:29 PM, mark florisson wrote: On 30 January 2012 21:03, Lisandro Dalcinwrote: I'm testing my code with numpy-dev. They are trying to discourage use of deprecated APIs, th

Re: [Cython] Upcoming issues with NumPy deprecated APIs and Cython's sizeof checks

2012-01-31 Thread mark florisson
On 31 January 2012 15:40, Dag Sverre Seljebotn wrote: > On 01/31/2012 03:29 PM, mark florisson wrote: >> >> On 30 January 2012 21:03, Lisandro Dalcin  wrote: >>> >>> I'm testing my code with numpy-dev. They are trying to discourage use >>> of deprecated APIs, this includes direct access to the nda

Re: [Cython] [cython-users] Re: How to find out where an AttributeError is ignored

2012-01-31 Thread Stefan Behnel
mark florisson, 31.01.2012 17:30: > Only except * and except ? have ever made some sense to me. Except + > is the most mysterious syntax ever, imho it should have been 'except > cpperror' or something. And when you try to search for "except +" or > "except *" etc on docs.cython.org it doesn't find

Re: [Cython] [cython-users] Re: How to find out where an AttributeError is ignored

2012-01-31 Thread Dag Sverre Seljebotn
On 01/31/2012 05:30 PM, mark florisson wrote: On 31 January 2012 02:12, Robert Bradshaw wrote: On Fri, Jan 27, 2012 at 1:01 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 27.01.2012 21:03: the need to explicitly declare "except *" keeps coming up again and again, and is really a blemish on t

Re: [Cython] [cython-users] Re: How to find out where an AttributeError is ignored

2012-01-31 Thread mark florisson
On 31 January 2012 02:12, Robert Bradshaw wrote: > On Fri, Jan 27, 2012 at 1:01 PM, Stefan Behnel wrote: >> Dag Sverre Seljebotn, 27.01.2012 21:03: >>> On 01/27/2012 05:58 PM, Stefan Behnel wrote: mark florisson, 27.01.2012 17:30: > On 27 January 2012 16:22, mark florisson   > wrote:

Re: [Cython] Upcoming issues with NumPy deprecated APIs and Cython's sizeof checks

2012-01-31 Thread Lisandro Dalcin
On 31 January 2012 11:29, mark florisson wrote: > On 30 January 2012 21:03, Lisandro Dalcin wrote: >> >> I think there is nothing Cython can do about this (other than >> special-casing NumPy to disable this VERY useful warning). > > Weird, shouldn't you be getting an error? Because the size of th

Re: [Cython] Upcoming issues with NumPy deprecated APIs and Cython's sizeof checks

2012-01-31 Thread Dag Sverre Seljebotn
On 01/31/2012 03:29 PM, mark florisson wrote: On 30 January 2012 21:03, Lisandro Dalcin wrote: I'm testing my code with numpy-dev. They are trying to discourage use of deprecated APIs, this includes direct access to the ndarray struct. In order to update your code, you have to pass -DNPY_NO_DEP

Re: [Cython] Upcoming issues with NumPy deprecated APIs and Cython's sizeof checks

2012-01-31 Thread mark florisson
On 30 January 2012 21:03, Lisandro Dalcin wrote: > I'm testing my code with numpy-dev. They are trying to discourage use > of deprecated APIs, this includes direct access to the ndarray struct. > In order to update your code, you have to pass -DNPY_NO_DEPRECATED_API > to the C compiler (or #define