[SciPy-dev] [Numpy-discussion] importing madness
Travis Oliphant
oliphant at ee.byu.edu
Wed Jan 18 15:24:21 CST 2006
Robert Kern wrote:
>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.
>
>
>
I think the problem is that I recently added numpy.linalg to the linalg
namespace (and loaded it by default) and scipy imports the full numpy
namespace for backwards compatibility.
-Travis
More information about the Scipy-dev
mailing list