[Numpy-discussion] What protocol to use now?

Christopher Barker Chris.Barker@noaa....
Tue Dec 8 15:44:13 CST 2009

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. Oh well, I'm 
not writing the code.


Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception


More information about the NumPy-Discussion mailing list