Re: [Numpy-discussion] Adding the new polynomial/chebyshev modules.

2009-11-16 Thread Robert Kern
On Mon, Nov 16, 2009 at 18:39, Christopher Barker wrote: > Robert Kern wrote: >>> Is there a way to avoid importing everything when importing a module >>> deep in a big package? >> >> The package authors need to keep the __init__.py files clear. There is >> nothing you can do as a user. > > I figu

Re: [Numpy-discussion] Adding the new polynomial/chebyshev modules.

2009-11-16 Thread Christopher Barker
Anne Archibald wrote: > The reason numpy and scipy don't do this is largely historical - > Numeric had a nearly flat namespace, I know. Despite namespaces being "one honking great idea", it seems to have taken a while to catch on. > Since spatial is new, though, it should be pretty good about n

Re: [Numpy-discussion] Adding the new polynomial/chebyshev modules.

2009-11-16 Thread Christopher Barker
Robert Kern wrote: >> Is there a way to avoid importing everything when importing a module >> deep in a big package? > > The package authors need to keep the __init__.py files clear. There is > nothing you can do as a user. I figured. so, to bring this back on-topic: I recommend that no package

Re: [Numpy-discussion] Adding the new polynomial/chebyshev modules.

2009-11-16 Thread Anne Archibald
2009/11/16 Robert Kern : > On Mon, Nov 16, 2009 at 18:05, Christopher Barker > wrote: >> Charles R Harris wrote: >>> That's what I ended up doing. You still need to do "import >>> numpy.polynomial" to get to them, they aren't automatically imported >>> into the numpy namespace. >> >> good start.

Re: [Numpy-discussion] Adding the new polynomial/chebyshev modules.

2009-11-16 Thread Robert Kern
On Mon, Nov 16, 2009 at 18:05, Christopher Barker wrote: > Charles R Harris wrote: >> That's what I ended up doing. You still need to do "import >> numpy.polynomial" to get to them, they aren't automatically imported >> into the numpy namespace. > > good start. This brings up a semi-off-topic ques

Re: [Numpy-discussion] Adding the new polynomial/chebyshev modules.

2009-11-16 Thread Christopher Barker
Charles R Harris wrote: > That's what I ended up doing. You still need to do "import > numpy.polynomial" to get to them, they aren't automatically imported > into the numpy namespace. good start. This brings up a semi-off-topic question: Is there a way to avoid importing everything when importi

Re: [Numpy-discussion] Adding the new polynomial/chebyshev modules.

2009-11-16 Thread Charles R Harris
On Mon, Nov 16, 2009 at 3:06 PM, Anne Archibald wrote: > 2009/11/16 Christopher Barker : > > Charles R Harris wrote: > >> I would like some advise on the best way to add the new functions. I've > >> added a new package polynomial, and that package contains four new > >> modules: chebyshev, polynom

Re: [Numpy-discussion] Adding the new polynomial/chebyshev modules.

2009-11-16 Thread Anne Archibald
2009/11/16 Christopher Barker : > Charles R Harris wrote: >> I would like some advise on the best way to add the new functions. I've >> added a new package polynomial, and that package contains four new >> modules: chebyshev, polynomial, polytemplate, polyutils. > > This seems to belong more in sci

Re: [Numpy-discussion] Adding the new polynomial/chebyshev modules.

2009-11-16 Thread Charles R Harris
On Mon, Nov 16, 2009 at 10:43 AM, Christopher Barker wrote: > Charles R Harris wrote: > > I would like some advise on the best way to add the new functions. I've > > added a new package polynomial, and that package contains four new > > modules: chebyshev, polynomial, polytemplate, polyutils. > >

Re: [Numpy-discussion] Adding the new polynomial/chebyshev modules.

2009-11-16 Thread Christopher Barker
Charles R Harris wrote: > I would like some advise on the best way to add the new functions. I've > added a new package polynomial, and that package contains four new > modules: chebyshev, polynomial, polytemplate, polyutils. This seems to belong more in scipy than numpy, but I'll leave that to

[Numpy-discussion] Adding the new polynomial/chebyshev modules.

2009-11-14 Thread Charles R Harris
Hi All, I would like some advise on the best way to add the new functions. I've added a new package polynomial, and that package contains four new modules: chebyshev, polynomial, polytemplate, polyutils. The question is whether or not to include all of the functions in these packages in the __init