questions regarding assignement and copy

Sven Schreiber svetosch at gmx.net
Wed Oct 18 08:50:45 CDT 2006


David Cournapeau schrieb:
> Sven Schreiber wrote:
>> Yes it's intended; as far as I understand the python/numpy syntax, <+>
>> is an operator, and that triggers assignment by copy (even if you do
>> something trivial as bar = +foo, you get a copy, if I'm not mistaken),
>>   
> So basically, whenever you have
> 
> foo = expr
> 
> with expr is a numpy expression containing foo, you trigger a copy ?
> 

David, I would tend to confirm your conjecture, but given its generality
  I should not pretend to really know all about that stuff.

It could be, for example, that the user may specify inside the
expression that she wants a view, not a copy, But I don't know if that's
really possible.

Anybody else available to help out?
-sven

-------------------------------------------------------------------------
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




More information about the Numpy-discussion mailing list