[Numpy-discussion] Added atleast_nd, request for clarification/cleanup of atleast_3d

Stephan Hoyer shoyer at gmail.com
Wed Jul 6 13:43:57 EDT 2016


On Tue, Jul 5, 2016 at 10:06 PM, Nathaniel Smith <njs at pobox.com> wrote:

> I don't know how typical I am in this. But it does make me wonder if the
> atleast_* functions act as an attractive nuisance, where new users take
> their presence as an implicit recommendation that they are actually a
> useful thing to reach for, even though they... aren't that. And maybe we
> should be recommending folk move away from them rather than trying to
> extend them further?
>
Agreed. I would avoid adding atleast_nd. We could discourage using
atleast_3d (certainly the behavior is indeed surprising), but I'm not sure
it's worth the trouble.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160706/1b22a639/attachment.html>


More information about the NumPy-Discussion mailing list