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

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 chris.bar...@noaa.govwrote: 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,

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

2009-11-16 Thread Anne Archibald
2009/11/16 Christopher Barker chris.bar...@noaa.gov: 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

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 peridot.face...@gmail.comwrote: 2009/11/16 Christopher Barker chris.bar...@noaa.gov: 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

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 importing a

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 chris.bar...@noaa.gov 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

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

2009-11-16 Thread Anne Archibald
2009/11/16 Robert Kern robert.k...@gmail.com: On Mon, Nov 16, 2009 at 18:05, Christopher Barker chris.bar...@noaa.gov 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

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 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 not

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 chris.bar...@noaa.gov 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.

[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