Deepcopying numeric array

Johann Hibschman johann at physics.berkeley.edu
Thu Aug 19 06:50:33 CEST 1999


Greg Ewing writes:

> Stuart Reynolds wrote:
>> 
>> Does anyone know why the Numeric arrays can't be deepcopied? Is it just
>> an omission?

> Not only that, but I just found out a few minutes
> ago that they're un-comparable and un-hashable!

> Is there any good reason for these restrictions?
> Are they on hold awaiting Rich Comparisons or
> something?

Well, they're mutable, so you can't use them as hash keys anyway, and,
yes, comparisons are Broken By Design since they can't "do the right
thing."

-- 
Johann Hibschman                           johann at physics.berkeley.edu




More information about the Python-list mailing list