[Numpy-discussion] Response to PEP suggestions
tkorvola at welho.com
Fri Feb 18 15:22:14 EST 2005
Stephen Walton <stephen.walton at csun.edu> writes:
> As I said, right now min(scalar) in stock Python raises
> a TypeError on the grounds that scalars can't be iterated over.
This is not very different from Numarray, where min(rank_0_array)
raises ValueError because min is applied to an empty sequence.
Iteration normally applies to the first dimenson but rank 0 arrays
have no dimensions.
Timo Korvola <URL:http://www.iki.fi/tkorvola>
More information about the NumPy-Discussion