[Numpy-discussion] A question about import in numpy and in place build
Fri Mar 13 01:22:48 CDT 2009
On Fri, Mar 13, 2009 at 01:02, David Cournapeau
> 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 ?
What do you mean?
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion