Re: [Cython] Cython 0.16 and ndarray fields deprecation

2012-03-02 Thread Dimitri Tcaciuc
On Fri, Mar 2, 2012 at 8:29 AM, mark florisson wrote: > On 1 March 2012 16:18, Dag Sverre Seljebotn > wrote: >> On 03/01/2012 04:03 AM, mark florisson wrote: >>> >>> On 29 February 2012 17:57, Dag Sverre Seljebotn >>>  wrote: On 02/29/2012 09:42 AM, Stefan Behnel wrote: > > >>

Re: [Cython] Cython 0.16 and ndarray fields deprecation

2012-03-02 Thread mark florisson
On 1 March 2012 19:16, Sturla Molden wrote: > On 01.03.2012 19:33, Dag Sverre Seljebotn wrote: >> >> >> Yeah, I proposed this on another thread as one of the options, but the >> support wasn't overwhelming at the time... > > > I think it is worse to break parts of it, thus introducing bugs that mi

Re: [Cython] Cython 0.16 and ndarray fields deprecation

2012-03-02 Thread mark florisson
On 1 March 2012 16:18, Dag Sverre Seljebotn wrote: > On 03/01/2012 04:03 AM, mark florisson wrote: >> >> On 29 February 2012 17:57, Dag Sverre Seljebotn >>  wrote: >>> >>> On 02/29/2012 09:42 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 29.02.2012 18:06: > > > I'm won

Re: [Cython] Cython 0.16 and ndarray fields deprecation

2012-03-01 Thread Sturla Molden
On 01.03.2012 19:33, Dag Sverre Seljebotn wrote: Yeah, I proposed this on another thread as one of the options, but the support wasn't overwhelming at the time... I think it is worse to break parts of it, thus introducing bugs that might go silent for a long time. Rather deprecate the whole

Re: [Cython] Cython 0.16 and ndarray fields deprecation

2012-03-01 Thread Dag Sverre Seljebotn
On 03/01/2012 09:29 AM, Sturla Molden wrote: On 01.03.2012 17:18, Dag Sverre Seljebotn wrote: are saying we (somehow) stick with supporting "arr.shape[0]" in the future, and perhaps even support "print arr.shape"? (+ arr.dim, arr.strides). What if you just deprecate ndarray support completely

Re: [Cython] Cython 0.16 and ndarray fields deprecation

2012-03-01 Thread Sturla Molden
On 01.03.2012 17:18, Dag Sverre Seljebotn wrote: I'm anyway leaning towards deprecating arr.data, as it's too different from what the Python attribute does. This should be preferred, I think &arr[0] or &arr[0] The latter is exacty what arr.data will currently do in Cython (but not

Re: [Cython] Cython 0.16 and ndarray fields deprecation

2012-03-01 Thread Sturla Molden
On 01.03.2012 17:18, Dag Sverre Seljebotn wrote: are saying we (somehow) stick with supporting "arr.shape[0]" in the future, and perhaps even support "print arr.shape"? (+ arr.dim, arr.strides). What if you just deprecate ndarray support completely, and just focus on memory views? Yes, you

Re: [Cython] Cython 0.16 and ndarray fields deprecation

2012-03-01 Thread Dag Sverre Seljebotn
On 03/01/2012 04:03 AM, mark florisson wrote: On 29 February 2012 17:57, Dag Sverre Seljebotn wrote: On 02/29/2012 09:42 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 29.02.2012 18:06: I'm wondering what the best course of action for deprecating the shape field in numpy.pxd is. The thing

Re: [Cython] Cython 0.16 and ndarray fields deprecation

2012-03-01 Thread mark florisson
On 29 February 2012 17:57, Dag Sverre Seljebotn wrote: > On 02/29/2012 09:42 AM, Stefan Behnel wrote: >> >> Dag Sverre Seljebotn, 29.02.2012 18:06: >>> >>> I'm wondering what the best course of action for deprecating the shape >>> field in numpy.pxd is. >>> >>> The thing is, currently "shape" real

Re: [Cython] Cython 0.16 and ndarray fields deprecation

2012-02-29 Thread Dag Sverre Seljebotn
On 02/29/2012 09:42 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 29.02.2012 18:06: I'm wondering what the best course of action for deprecating the shape field in numpy.pxd is. The thing is, currently "shape" really gets in the way. In most situations it is OK with slow access to shape throug

Re: [Cython] Cython 0.16 and ndarray fields deprecation

2012-02-29 Thread Stefan Behnel
Dag Sverre Seljebotn, 29.02.2012 18:06: > I'm wondering what the best course of action for deprecating the shape > field in numpy.pxd is. > > The thing is, currently "shape" really gets in the way. In most situations > it is OK with slow access to shape through the Python layer, and > "arr.shape[0

[Cython] Cython 0.16 and ndarray fields deprecation

2012-02-29 Thread Dag Sverre Seljebotn
I'm wondering what the best course of action for deprecating the shape field in numpy.pxd is. The thing is, currently "shape" really gets in the way. In most situations it is OK with slow access to shape through the Python layer, and "arr.shape[0]" is often just fine, but currently one is in a