Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!newsfeed.datemas.de!news.datemas.de!.POSTED!not-for-mail From: Paul Appleby Newsgroups: comp.lang.python Subject: So what's happening here? Date: Fri, 5 Jun 2015 12:46:22 +0000 (UTC) Organization: Datemas.de http://www.news.datemas.de Lines: 10 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: 2NM40xdZ1htrTKlcHeRnd+YNpcaYh5JeVkICDwKn0IwQlSLQoRKxtJuAEAr3zas0XeujmHl3VmnNYhtjoN4uyAqzeJpY6IIXZVoh/Ad7xiZh5mKn0obM2R0HjPVk7MF1aeBgRzcQrfHGpRGoQBOZQ2t8rgv0TODS1K+1Dg6zTIY= X-Complaints-To: abuse@datemas.de NNTP-Posting-Date: Fri, 5 Jun 2015 12:46:22 +0000 (UTC) User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Xref: csiph.com comp.lang.python:92137 I saw somewhere on the net that you can copy a list with slicing. So what's happening when I try it with a numpy array? >>> a = numpy.array([1,2,3]) >>> b = a[:] >>> a is b False >>> b[1] = 9 >>> a array([1, 9, 3])