[Numpy-discussion] Deprecate np.max/np.min ?
Fri Nov 6 11:57:03 CST 2009
On Fri, Nov 6, 2009 at 12:40 PM, Charles R Harris
> People import these functions -- yes, they shouldn't do that -- and the
> python builtin versions are overloaded, causing hard to locate errors. It
> would be easy enough to put a small wrapper around the current definition in
> core/__init__.py and raise a deprecation warning. The round function might
> be another candidate for deprecation.
I like np.min, np.max (corresponding to min, max methods of arrays),
and I don't like the `a` in front of the names.
Users need to learn to get their namespaces correct, because there are
a lot of functions that have different meanings and syntax across
It follows the same pattern for missing brackets as many of the other
functions, where I often have typos.
Traceback (most recent call last):
line 1567, in ones
a = empty(shape, dtype, order)
TypeError: data type not understood
> NumPy-Discussion mailing list
More information about the NumPy-Discussion