[Numpy-discussion] Shouldn't numpy.core modules avoid calling numpy.lib ?

David Cournapeau david@ar.media.kyoto-u.ac...
Tue May 20 21:39:05 CDT 2008

Charles R Harris wrote:
> On Tue, May 20, 2008 at 8:14 PM, David Cournapeau 
> <david@ar.media.kyoto-u.ac.jp <mailto:david@ar.media.kyoto-u.ac.jp>> 
> wrote:
>     Hi,
>        I noticed that some functions in numpy.core call functions in
>     numpy.lib. Shouldn't this be avoided as much as possible, to avoid
>     potential circular import, dependencies, etc... ?
> Probably not.

Probably not avoided, or should probably not be called ?

> But numpy/lib looks like a basement closet to me, anyway. What 
> functions are getting called?

I can see at least one: numpy.lib.issubtype in core/defmatrix.py, called 
once. I am trying to see why importing numpy is slow, and those circular 
import make the thing difficult to understand (or maybe I am just too 
new to dtrace to understand how to use it effectively here).



More information about the Numpy-discussion mailing list