[Numpy-discussion] min/max not exported in "from numpy import *"
Zhang Le
zhang.le.misc at gmail.com
Thu Jun 29 10:57:57 EDT 2006
Hi,
I'm using 0.9.8 and find numpy.ndarray.min() is not exported to
global space when doing a
from numpy import *
In [1]: from numpy import *
In [2]: help min
------> help(min)
Help on built-in function min in module __builtin__:
min(...)
min(sequence) -> value
min(a, b, c, ...) -> value
With a single sequence argument, return its smallest item.
With two or more arguments, return the smallest argument.
Also numpy.ndarray.max() is not available too. But the built-in sum()
is replaced by numpy.ndarray.sum() as expected.
Is this a bug or just intended to do so and user has to use
numpy.ndarray.min() explicitly?
Cheers,
Zhang Le
More information about the NumPy-Discussion
mailing list