Sebastian Haase wrote:
> Hi,
> probably related to this is that
> arr[2].real is read-only ...
>
> I noticed that you cannot assign 
> to arr[2].real :
>   
No, that's unrelated.  The problem is that arr[2] is a scalar and so it 
is immutable.  When an array scalar is created you get a *copy* of the 
data.  Setting it would not have the effect you imagine as the original 
data would go unchanged.

The only exception to this is the array of type "void" which *does not* 
copy the data.

-Travis


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to