Re: [Numpy-discussion] What protocol to use now?

2009-12-08 Thread Christopher Barker
Robert Kern wrote: > On Tue, Dec 8, 2009 at 17:41, Christopher Barker > wrote: >> My suggested new wording: >> >> """ >> Warning >> >> This page describes the current array interface. Everything still works >> as described as of numpy 1.4 and on into the foreseeable future. >> However, future ver

Re: [Numpy-discussion] What protocol to use now?

2009-12-08 Thread Robert Kern
On Tue, Dec 8, 2009 at 17:41, Christopher Barker wrote: > Pauli Virtanen wrote: >>> I think the wording is overly strong. > > not just too string, but actually wrong -- you can't target PEP 3118 -- > numpy doesn't support it at all yet! > > > Current wording: > > """ > Warning > > This page descri

Re: [Numpy-discussion] What protocol to use now?

2009-12-08 Thread Christopher Barker
Pauli Virtanen wrote: >> I think the wording is overly strong. not just too string, but actually wrong -- you can't target PEP 3118 -- numpy doesn't support it at all yet! Current wording: """ Warning This page describes the old, deprecated array interface. Everything still works as describe

Re: [Numpy-discussion] What protocol to use now?

2009-12-08 Thread Pauli Virtanen
ti, 2009-12-08 kello 14:23 -0600, Robert Kern kirjoitti: [clip] > I think the wording is overly strong. I don't think that we actually > decided to deprecate the interface. PEP 3118 is not yet implemented by > numpy, and the PEP 3118 API won't be available to Python's <2.6 > (Cython's workarounds n

Re: [Numpy-discussion] What protocol to use now?

2009-12-08 Thread Robert Kern
On Tue, Dec 8, 2009 at 15:44, Christopher Barker wrote: > Robert Kern wrote: >>> The array interface was made for this sort of thing, but is deprecated: >>> >>> http://docs.scipy.org/doc/numpy/reference/arrays.interface.html > >> I think the wording is overly strong. I don't think that we actually

Re: [Numpy-discussion] What protocol to use now?

2009-12-08 Thread Christopher Barker
Robert Kern wrote: >> The array interface was made for this sort of thing, but is deprecated: >> >> http://docs.scipy.org/doc/numpy/reference/arrays.interface.html > I think the wording is overly strong. I don't think that we actually > decided to deprecate the interface. PEP 3118 is not yet imple

Re: [Numpy-discussion] What protocol to use now?

2009-12-08 Thread Robert Kern
On Tue, Dec 8, 2009 at 12:34, Christopher Barker wrote: > Hi folks, > > There was just a question on the wxPython list about how to optimize > some drawing of data in numpy arrays. Currently, wxPython uses > PySequenceGetItem to iterate through an array, so you can imagine there > is a fair bit of

[Numpy-discussion] What protocol to use now?

2009-12-08 Thread Christopher Barker
Hi folks, There was just a question on the wxPython list about how to optimize some drawing of data in numpy arrays. Currently, wxPython uses PySequenceGetItem to iterate through an array, so you can imagine there is a fair bit of overhead in that. But what to use? We don't want to require nu