[Numpy-discussion] ENH: Proposal to add atleast_nd function

Oscar Benjamin oscar.j.benjamin at gmail.com
Wed Feb 17 15:26:01 EST 2021


On Wed, 17 Feb 2021 at 10:36, Ralf Gommers <ralf.gommers at gmail.com> wrote:
>
> On Wed, Feb 17, 2021 at 12:26 AM Stefan van der Walt <stefanv at berkeley.edu> wrote:
>>
>> Ralf has been working towards this idea, but having a well-organised namespace of utility functions outside of the core NumPy API would be helpful in allowing expansion and experimentation, without making the current situation worse (where we effectively have to support things forever).  As an example, take Cartesian product [0] and array combinations [1], which have been requested several times on StackOverflow, but there's nowhere to put them.
>
> This is a good point. If we could put it in `numpy.lib` without it bleeding into the main namespace, saying yes here would be easier. Maybe we can give it a conditional yes based on that namespace reorganization?

As an aside is this numpy.lib idea explained anywhere?

I've been thinking about something possibly similar for sympy which
also has a bloated top-level namespace (and has no other place for
public API to go).


Oscar


More information about the NumPy-Discussion mailing list