Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92138
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Fabien <fabien.maussion@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: So what's happening here? |
| Date | Fri, 05 Jun 2015 14:52:38 +0200 |
| Organization | Aioe.org NNTP Server |
| Lines | 9 |
| Message-ID | <mks62l$6gh$1@speranza.aioe.org> (permalink) |
| References | <pan.2015.06.05.12.46.21@nowhere.invalid> |
| NNTP-Posting-Host | dBj109E0Hd5e4YuvXypQcQ.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.python:92138 |
Show key headers only | View raw
On 06/05/2015 02:46 PM, Paul Appleby wrote: > 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? Python lists and numpy arrays are NOT the same thing. This is one of the reasons why numpy was developed in the first place. Numpy uses views, not copies. There is however a .copy() method on numpy arrays Fabien
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
So what's happening here? Paul Appleby <pap@nowhere.invalid> - 2015-06-05 12:46 +0000
Re: So what's happening here? Fabien <fabien.maussion@gmail.com> - 2015-06-05 14:52 +0200
Re: So what's happening here? Larry Martell <larry.martell@gmail.com> - 2015-06-05 08:55 -0400
Re: So what's happening here? Peter Otten <__peter__@web.de> - 2015-06-05 15:09 +0200
Re: So what's happening here? Paul Appleby <pap@nowhere.invalid> - 2015-06-05 13:11 +0000
Re: So what's happening here? Gary Herron <gary.herron@islandtraining.com> - 2015-06-05 06:23 -0700
Re: So what's happening here? Steven D'Aprano <steve@pearwood.info> - 2015-06-05 23:51 +1000
Re: So what's happening here? Nobody <nobody@nowhere.invalid> - 2015-06-05 15:13 +0100
csiph-web