[Numpy-discussion] Behavior of array scalars

Christopher Barker Chris.Barker at noaa.gov
Fri Feb 17 17:19:03 EST 2006

Travis Oliphant wrote:

>  They just don't 
> *stay* 0-d arrays and are converted to array scalars at almost every 
> opportunity....

I'm still confused as to what the difference is. This (recent) 
convesation started with my desire for a mutable scalar. CAn array 
scalars fill this role?

What I mean by that role is some way to do:

x += 5 # (and friends)
x[()] = 45 # or some other notation

And have x be the same object throughout.

Heck even something like:


would work for me.

Alexander Belopolsky wrote:
>>>>x[...] = 10
> or
>>>>x[()] = 10

I can't do that. HAs that been added since version: '0.9.2' ?


Christopher Barker, Ph.D.
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov

More information about the NumPy-Discussion mailing list