[Numpy-discussion] backwards compatibility and deprecation policy NEP

Marten van Kerkwijk m.h.vankerkwijk at gmail.com
Sat Jul 21 22:06:53 EDT 2018

Hi Ralf,

Maybe as a concrete example of something that has been discussed, for which
your proposed text makes (I think) clear what should or should not be done:

Many of us hate that `np.array` (like, sadly, many other numpy parts)
auto-converts anything not obviously array-like to dtype=object, and it has
been suggested we should no longer do this by default [1]. Given your NEP,
I think you would disagree with that path, as it would quite obviously
break user's code (we also get regular issues about object arrays, which
show that they are used a lot in the wild). So, instead I guess one might
go with a route where one could explicitly tell `dtype=object` was not
wanted (say, `dtype="everything-but-object')?

All the best,


[1] https://github.com/numpy/numpy/issues/5353
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180721/5b697bf2/attachment.html>

More information about the NumPy-Discussion mailing list