[Numpy-discussion] What protocol to use now?

Robert Kern robert.kern at gmail.com
Tue Dec 8 16:48:54 EST 2009


On Tue, Dec 8, 2009 at 15:44, Christopher Barker <Chris.Barker at noaa.gov> 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
>> decided to deprecate the interface. PEP 3118 is not yet implemented by
>> numpy.
>
> That settles it then -- the array interface is the only option if you
> want to do any type checking.
>
> I'm a bit surprised that PEP 3118 hasn't been implemented yet in numpy
> -- after all, it we designed very much with numpy in mind.

Travis's time commitments very suddenly changed late in the PEP's life.

-- 
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