[Numpy-discussion] Thoughts about zero dimensional arrays vs Python scalars

Ralf Juengling juenglin at cs.pdx.edu
Sun Mar 20 23:25:17 EST 2005

Travis Oliphant wrote:

> Ralf Juengling wrote:
>> I just read the section about "Array Scalars" again and
>> am not sure anymore that I understood the whole idea. When
>> you say "Array Scalar", do you mean a zero dimensional array or is an 
>> "Array Scalar" yet another animal?
>> Ralf
> It is another type object that is a scalar but "quacks" like an array 
> (has the same methods and attributes)

... but is, unlike arrays, an immutable type (just like the existing
Python scalars).


More information about the NumPy-Discussion mailing list