[SciPy-dev] [Numpy-discussion] importing madness

Robert Kern robert.kern at gmail.com
Wed Jan 18 14:08:34 CST 2006

Ed Schofield wrote:

> Unless I'm doing something very stupid, there seem to be multiple
> sources of evil here.  First, numpy's linalg package is available from
> the scipy namespace, which seems like a recipe for Ed's madness, since
> he can't find his pinv2() function.  Second, scipy.pkgload('linalg')
> silently fails to make any visible difference.  This is probably a
> simple bug.

It's certainly not intended behavior. The process by which pkgload() determines
where it is being called from is messing up. pkgload lives in
numpy._import_tools, but it is also exposed in the scipy namespace, too.

Please file a bug report and assign it to Pearu.

Robert Kern
robert.kern at gmail.com

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter

More information about the Scipy-dev mailing list