[Numpy-discussion] new NEP: np.AbstractArray and np.asabstractarray

Ryan May rmay31 at gmail.com
Fri Mar 9 14:42:05 EST 2018


On Fri, Mar 9, 2018 at 12:21 AM, Hameer Abbasi <einstein.edison at gmail.com>
wrote:

> Not that I’m against different “levels” of ndarray granularity, but I just
> don’t want it to introduce complexity for the end-user. For example, it
> would be unreasonable to expect the end-user to check for all parts of the
> interface that they need support for separately.
>

I wouldn't necessarily want all of the granularity exposed in something
like "asarraylike"--that should be kept really simple. But I think there's
value in numpy providing multiple ABCs for portions of the interface (and
one big one that combines them all). That way, people who want the
finer-grained checking (say for a more limited array-like) can use a
common, shared, existing ABC, rather than having everyone re-invent it.

Ryan

-- 
Ryan May
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180309/30c3e4cc/attachment.html>


More information about the NumPy-Discussion mailing list