Hi Sebastian,

On Tue, Mar 8, 2022, at 07:41, Sebastian Berg wrote:
> just a brief note that:
>
>     https://github.com/numpy/numpy/pull/21145
>
> will add `np.from_dlpack` (to import objects implementing the
> `__dlpack__` dunder [1].

In other places in the ecosystem, like pandas and xarray, `from_x` and friends 
live as static methods on their respective classes.  Any reason not to add this 
as `numpy.array.from_dlpack`? We may also want to consider adding all the other 
`from*`'s there and deprecating the original usage (without removing it).

Stéfan
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to