[Numpy-discussion] numarray __copy__ and __deepcopy__

Fernando Perez fperez at colorado.edu
Fri Nov 7 14:09:31 CST 2003

Tim Hochberg wrote:

> Your correct that anArray.copy() provides a deep copy of an array in 
> both Numeric and numarray. However, you would like to be able to pass 
> some object to copy.copy or copy.deepcopy and have it provide the 
> appropriate type of copy whether the given object is an array, list or 
> something other.

Good point.  This is a usage case I hadn't thought of, never having needed it 
myself.  And apparently neither had the numarray team ;-)



More information about the Numpy-discussion mailing list