[Numpy-discussion] Behavior of array scalars
oliphant at ee.byu.edu
Fri Feb 17 17:30:09 CST 2006
Christopher Barker wrote:
> 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?
No. array scalars are immutable (well except for the void array scalar...)
> What I mean by that role is some way to do:
> x += 5 # (and friends)
This now works in SVN. In-place operations on 0-d arrays don't change
More information about the Numpy-discussion