[Numpy-discussion] What protocol to use now?

Robert Kern robert.kern@gmail....
Tue Dec 8 17:58:01 CST 2009


On Tue, Dec 8, 2009 at 17:41, Christopher Barker <Chris.Barker@noaa.gov> 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 describes the old, deprecated array interface. Everything
> still works as described as of numpy 1.2 and on into the foreseeable
> future, but new development should target PEP 3118 – The Revised Buffer
> Protocol. PEP 3118 was incorporated into Python 2.6 and 3.0
> ...
> """
>
> 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 versions of numpy will target PEP 3118 – The Revised
> Buffer Protocol. PEP 3118 was incorporated into Python 2.6 and 3.0, and
> we hope to incorporate it into numpy 1.5
> ...
>
> """

The Cython information is still nice. Also, it should not be a
warning, just a note, since there is no impending deprecation to warn
about.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the NumPy-Discussion mailing list