[Numpy-discussion] packaging scipy (was Re: Simple financial functions for NumPy)

Stéfan van der Walt stefan@sun.ac...
Mon Apr 7 10:20:47 CDT 2008


On 07/04/2008, David Huard <david.huard@gmail.com> wrote:
>
> 2008/4/4, Joe Harrington <jh@physics.ucf.edu>:
> > import numpy      as N
> > import numpy.math as N.M
> > import numpy.trig as N.T
> > import numpy.stat as N.S
>
>
> I don't think the issue is whether to put everything in the base namespace
> // everything in individual namespace, but rather to find an optimal and
> intuitive mix between the two. For instance, the io functions would be
> easier to find by typing np.io.loadtxt than by sifting through the 500+
> items of the base namespace. The stats functions could equally well be in a
> separate namespace, given that the most used are implemented as array
> methods. I think this would allow numpy to grow more gracefully.

I agree, and I think we can come to some compromise -- maybe a
numpy.all namespace, that simply imports all the other subpackages.

Regards
Stéfan


More information about the Numpy-discussion mailing list