[Numpy-discussion] Response to PEP suggestions

Stephen Walton stephen.walton at csun.edu
Fri Feb 18 14:03:14 EST 2005


Duncan Child wrote:

> In another post [Konrad Hinsen] said:
>
> "... as the goal is inclusion into the Python core .... I propose that 
> the PEP should include unification of scalars and arrays such that for 
> all practical purposes scalars *are* rank-0 arrays. "
>
> So I think we are in broad agreement.

It seems to me that actually getting the above behavior is going to 
require Guido van Rossum et al. to change how scalars behave in the 
Python core.  As I said, right now min(scalar) in stock Python raises a 
TypeError on the grounds that scalars can't be iterated over.





More information about the NumPy-Discussion mailing list