[Numpy-discussion] Interaction between Numpy and the nose framework (was : packaging scipy)

Matthieu Brucher matthieu.brucher at gmail.com
Mon Apr 7 12:04:09 EDT 2008


BTW, I stumbled on something strange with the nose framework. If you from
numpy.testing import * in a test file, the nose framework will try to test
the testing module by calling every test* method.

I just mention it there because I think I'm not the only one to do this for
set_package_path, assert_equal, ...

Matthieu

2008/4/7, Gael Varoquaux <gael.varoquaux at normalesup.org>:
>
> On Mon, Apr 07, 2008 at 05:20:47PM +0200, Stéfan van der Walt wrote:
> > I agree, and I think we can come to some compromise -- maybe a
> > numpy.all namespace, that simply imports all the other subpackages.
>
>
> For the beginner, "from numpy.all import *" is more confusing than "from
> numpy import *" (which is already confusing).
>
> I know namespace are good things, but the beginner struggles with them.
> This is why I used the "import *" in my above examples.
>
> My 2 cents,
>
> Gaël
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080407/02e74207/attachment.html>


More information about the NumPy-Discussion mailing list