[docs] why x is changed in the following program?

maurice.charbit at telecom-paristech.fr maurice.charbit at telecom-paristech.fr
Fri Mar 18 05:08:00 EDT 2016


from numpy import random
x=random.randn(6)
y=x
y[0]=12
print x[0]


Maurice Charbit
Emeritus Prof.
mob.: 33 (0)6 5230 1171
tel.: 33 (0)1 4581 7178
fax:  33 (0)1 4581 7144
maurice.charbit at telecom-paristech.fr <mailto:maurice.charbit at telecom-paristech.fr>
Adresse:
Institut Mines-Telecom,
46, rue Barrault, 75014 Paris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20160318/af131637/attachment.html>


More information about the docs mailing list