On Wed, Nov 30, 2022 at 7:10 PM Marko Pacak <i...@markopacak.com> wrote:
> Hi Ralf, thx for replying to this. > > > I'd prefer to tell users to use `np.asarray()` on their inputs instead. > > How would you do that? Through a warning in the test suite? Or document it > somewhere? > The docstring for array_equal should mention, for `actual` and `desired`, what input types are accepted. And the code itself should yield an informative error if an unsupported type is passed. That error message can be tested in the test suite if desired (not always done consistently, but it can't hurt). Cheers, Ralf
_______________________________________________ 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