[Numpy-discussion] A question about import in numpy and in place build
David Cournapeau
david@ar.media.kyoto-u.ac...
Fri Mar 13 01:02:36 CDT 2009
Robert Kern wrote:
>
> When it does work, the reason is because the import mechanism will
> place the "numeric" module into the "numpy.core" namespace as soon as
> it can, so it is usually available in the __init__ after a "from
> numeric import *". nose tries to control imports a little more tightly
> as it navigates packages looking for tests, so it can sometimes expose
> corner cases like this.
>
Ok, thanks for the explanation.
> In any case, it's okay to change the __init__.py's to be explicit
> about doing both "import numeric" and "from numeric import *".
>
Is adding additional imports fine too ? Or should we fix those in the
unittest instead to avoid more namespace pollution ?
David
More information about the Numpy-discussion
mailing list