Re: [Numpy-discussion] c api deprecations with NPY_NO_DEPRECATED_API

2014-03-11 Thread Paul Brossier
On 08/03/2014 19:25, Charles R Harris wrote: Thanks for your quick reply Charles. On Sat, Mar 8, 2014 at 2:54 PM, Paul Brossier p...@piem.org mailto:p...@piem.org wrote: 2. When defining NPY_NO_DEPRECATED_API, as mentioned in the above warning and in the documentation, I get this

Re: [Numpy-discussion] c api deprecations with NPY_NO_DEPRECATED_API

2014-03-11 Thread Nathaniel Smith
On 11 Mar 2014 13:28, Paul Brossier p...@piem.org wrote: If I understand correctly, the current version is the one installed on the user system. So using NPY_API_VERSION would mean this code should work with any version of numpy. I guess this is what I want (I would even expect this to be the

Re: [Numpy-discussion] c api deprecations with NPY_NO_DEPRECATED_API

2014-03-11 Thread Paul Brossier
On 11/03/2014 10:49, Nathaniel Smith wrote: On 11 Mar 2014 13:28, Paul Brossier p...@piem.org mailto:p...@piem.org wrote: If I understand correctly, the current version is the one installed on the user system. So using NPY_API_VERSION would mean this code should work with any version of

Re: [Numpy-discussion] c api deprecations with NPY_NO_DEPRECATED_API

2014-03-11 Thread Nathaniel Smith
On 11 Mar 2014 14:25, Paul Brossier p...@piem.org wrote: On 11/03/2014 10:49, Nathaniel Smith wrote: On 11 Mar 2014 13:28, Paul Brossier p...@piem.org mailto:p...@piem.org wrote: If I understand correctly, the current version is the one installed on the user system. So using

[Numpy-discussion] c api deprecations with NPY_NO_DEPRECATED_API

2014-03-08 Thread Paul Brossier
hi all, I'm trying to understand how to use the deprecation mechanism. 1. When not defining NPY_NO_DEPRECATED_API, I get warnings (as expected): #warning Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 2. When defining

Re: [Numpy-discussion] c api deprecations with NPY_NO_DEPRECATED_API

2014-03-08 Thread Charles R Harris
On Sat, Mar 8, 2014 at 2:54 PM, Paul Brossier p...@piem.org wrote: hi all, I'm trying to understand how to use the deprecation mechanism. 1. When not defining NPY_NO_DEPRECATED_API, I get warnings (as expected): #warning Using deprecated NumPy API, disable it by #defining