Deepcopying numeric array
Stuart Reynolds
S.I.Reynolds at cs.bham.ac.uk
Wed Aug 18 07:06:51 EDT 1999
Does anyone know why the Numeric arrays can't be deepcopied? Is it just
an omission?
Cheers
Stuart
>>> from Numeric import *
>>> a = array([1,2,3])
>>> a
array([1, 2, 3])
>>> from copy import *
>>> deepcopy(a)
Traceback (innermost last):
File "<stdin>", line 1, in ?
File "/bham/ums/common/pd/packages/Python/lib/python1.5/copy.py", line
147, in deepcopy
raise error, \
copy.error: un-deep-copyable object of type <type 'array'>
>>>
More information about the Python-list
mailing list