[Numpy-discussion] confusion about min/max

Gael Varoquaux gael.varoquaux at normalesup.org
Tue Sep 18 07:07:29 EDT 2007


On Tue, Sep 18, 2007 at 10:33:29AM -0000, mark wrote:
> Does that make sense? I know, I should probably use a.min() rather
> than min(a), but why does min() not get imported on an import * ?

Because min isn't in numpy.__all__. Python imports only identifiers
listed in __all__ if __all__ is present.

Gaël



More information about the NumPy-Discussion mailing list