[Numpy-discussion] Proposal: add `force=` or `copy=` kwarg to `__array__` interface

Ralf Gommers ralf.gommers at gmail.com
Wed Apr 29 07:07:09 EDT 2020


On Wed, Apr 29, 2020 at 12:27 PM Juan Nunez-Iglesias <jni at fastmail.com>
wrote:

>
>
> Ralf, you said you don't want warnings — even for sparse arrays? That was
> an area of concern for you on the PyTorch discussion side.
>

Providing a boolean keyword argument and then raising a warning every time
anyone uses that keyword makes very little sense.

This should simply be handled by clear documentation: use only in code like
visualization where the array arrives at its "end station", never in
functions that are again built on top of.

Cheers,
Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20200429/c3ad6145/attachment.html>


More information about the NumPy-Discussion mailing list