[Numpy-discussion] min/max not exported in "from numpy import *"

skip at pobox.com skip at pobox.com
Thu Jun 29 11:09:40 EDT 2006


    Zhang>   I'm using 0.9.8 and find numpy.ndarray.min() is not exported to
    Zhang> global space when doing a
    Zhang>   from numpy import *

I'm going to take a wild-ass guess and suggest that was a concious decision
by the authors.  Shadowing builtins is generally a no-no.  You just need to
be explicit instead of implicit:

    from numpy import min, max

Skip




More information about the NumPy-Discussion mailing list