Re: [Numpy-discussion] Extracting sub-fields from an array as a view (PR 350)

2012-07-15 Thread Dag Sverre Seljebotn
On 07/15/2012 12:31 AM, Travis Oliphant wrote: In https://github.com/numpy/numpy/pull/350/files , javius provides a patch to allow field extraction from a structured array to return a view instead of a copy. Generally, this is consistent with the desire to have NumPy return views whenever it

[Numpy-discussion] Extracting sub-fields from an array as a view (PR 350)

2012-07-14 Thread Travis Oliphant
In https://github.com/numpy/numpy/pull/350/files , javius provides a patch to allow field extraction from a structured array to return a view instead of a copy.Generally, this is consistent with the desire to have NumPy return views whenever it can. The same idea underlies the change

Re: [Numpy-discussion] Extracting sub-fields from an array as a view (PR 350)

2012-07-14 Thread Frédéric Bastien
I think it is better that we bundle those change together. As it is done for diagonal, doing it for this case as fine too. Fred On Sat, Jul 14, 2012 at 6:31 PM, Travis Oliphant tra...@continuum.io wrote: In https://github.com/numpy/numpy/pull/350/files , javius provides a patch to allow

Re: [Numpy-discussion] Extracting sub-fields from an array as a view (PR 350)

2012-07-14 Thread Anthony Scopatz
+1 for more views. I agree with Fred about bundling the changes together. On Sat, Jul 14, 2012 at 6:17 PM, Frédéric Bastien no...@nouiz.org wrote: I think it is better that we bundle those change together. As it is done for diagonal, doing it for this case as fine too. Fred On Sat, Jul