[Numpy-discussion] numpy installed but can' use

dikshie dikshie at gmail.com
Sat Dec 29 00:42:36 EST 2007


On Dec 29, 2007 1:38 PM, Travis E. Oliphant <oliphant at enthought.com> wrote:

> Yes, the key is what "names" are "imported" into the current namespace
> (what names are visible to your code).
>
> import numpy
>
> loads the module and places the name "numpy" in the current namespace
> which points to the loaded module.
>
> from numpy import *
>
> loads the module and places all the "exported" names from numpy into the
> current namespace.  The list of exported names, however, does not
> include the module numpy itself and so the current namespace does not
> get a "numpy" entry.

i see.
thank you very much for the explanation.

-dikshie-



More information about the NumPy-Discussion mailing list