So what's happening here?

Fabien fabien.maussion at gmail.com
Fri Jun 5 08:52:38 EDT 2015


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



More information about the Python-list mailing list