[Numpy-discussion] problems with duplicating and slicing an array

konrad.hinsen at laposte.net konrad.hinsen at laposte.net
Fri Jan 21 02:20:55 CST 2005


On Jan 21, 2005, at 9:48, konrad.hinsen at laposte.net wrote:

> There are several ways to make a copy of an array. My personal 
> preference is
>
> 	import copy
> 	v = copy(u)

That's of course

	import copy
	v = copy.copy(u)

or

	from copy import copy
	v = copy(u)

Konrad.
--
---------------------------------------------------------------------
Konrad Hinsen
Laboratoire Léon Brillouin, CEA Saclay,
91191 Gif-sur-Yvette Cedex, France
Tel.: +33-1 69 08 79 25
Fax: +33-1 69 08 82 61
E-Mail: hinsen at llb.saclay.cea.fr
---------------------------------------------------------------------





More information about the Numpy-discussion mailing list