Hi Ruben,

> In both cases, as the print
> statement shows, offspr is already created.

>>> offspr[...] = r + a[:, None]
means "fill the existing object pointed by offspr with r + a[:, None]" while
>>> offspr = r + a[:,None]
means "create a new array and assign it to the variable offspr (after 
decref-ing the object previously pointed by offspr)"

Best,
Luca

_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to