[Numpy-discussion] NEP 30 - Duck Typing for NumPy Arrays - Implementation
chris.barker at noaa.gov
Mon Sep 16 15:25:35 EDT 2019
On Mon, Aug 12, 2019 at 4:02 AM Peter Andreas Entschev <peter at entschev.com>
> Apologies for the late reply. I've opened a new PR
> https://github.com/numpy/numpy/pull/14257 with the changes requested
I've written a small PR on your PR:
Essentially, other than typos and copy editing, I'm suggesting that a
duck-array could choose to implement __array__ if it so chooses -- it
should, of course, return an actual numpy array.
I think this could be useful, as much code does require an actual numpy
array, and only that class itself knows how best to convert to one.
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
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion