Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105192

why x is changed in the following program?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From "maurice.charbit@telecom-paristech.fr" <maurice.charbit@telecom-paristech.fr>
Newsgroups comp.lang.python
Subject why x is changed in the following program?
Date Fri, 18 Mar 2016 10:09:14 +0100
Lines 19
Message-ID <mailman.309.1458296628.12893.python-list@python.org> (permalink)
Mime-Version 1.0 (Mac OS X Mail 9.2 \(3112\))
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de zuUiySAbPCJZp3xEr36OEwqUg46ZfUEnxYIYZs4IU3Mg==
Return-Path <maurice.charbit@telecom-paristech.fr>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.068
X-Spam-Evidence '*H*': 0.87; '*S*': 0.01; 'subject:why': 0.09; '46,': 0.16; 'break-word;': 0.16; 'emeritus': 0.16; 'numpy': 0.16; 'received:192.168.43': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'space;': 0.16; 'subject:program': 0.16; 'word-wrap:': 0.16; 'import': 0.24; 'random': 0.29; 'print': 0.30; 'skip:- 10': 0.34; '0);': 0.34; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'charset:us-ascii': 0.37; 'skip:- 20': 0.39; 'subject:the': 0.39; 'received:192': 0.39; 'skip:x 10': 0.40; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'tel.:': 0.63; 'adresse:': 0.84; 'rue': 0.84; 'prof.': 0.91; 'start;': 0.91
DKIM-Filter OpenDKIM Filter v2.9.2 zproxy120.enst.fr 0ACE010020D
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=telecom-paristech.fr; s=A6AEC2EE-1106-11E5-B10E-D103FDDA8F2E; t=1458292156; bh=8N5xevLp8w+t2IHbG3XqeR87pCnVYZvjh59VlwlO34Y=; h=From:Content-Type:Subject:Message-Id:Date:To:Mime-Version; b=wwD4q6I8jnBOqS/8/RhexEitZC3OA0fJlu1kU7URpoHqwU4J2U6IqkBQ01d3K6RWP guMHzkxRnvfa3VtfBCUC9bpbf/RQn6ZTgaOBFqnnnU+0Zxk1+EpJeKXo2PYMcSw3zy iFox3BfQZEtc6O56mLO8nil0cNeVbwm6rC9bp9pw=
X-Virus-Scanned amavisd-new at zproxy120.enst.fr
X-Mailer Apple Mail (2.3112)
X-Mailman-Approved-At Fri, 18 Mar 2016 06:23:46 -0400
X-Content-Filtered-By Mailman/MimeDel 2.1.21
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:105192

Show key headers only | View raw


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@telecom-paristech.fr <mailto:maurice.charbit@telecom-paristech.fr>
Adresse:
Institut Mines-Telecom,
46, rue Barrault, 75014 Paris

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

why x is changed in the following program? "maurice.charbit@telecom-paristech.fr" <maurice.charbit@telecom-paristech.fr> - 2016-03-18 10:09 +0100
  Re: why x is changed in the following program? Palpandi <palpandi111@gmail.com> - 2016-03-18 11:55 -0700

csiph-web