From: Simon B. <si...@ar...> - 2006-05-22 02:46:17
|
This is something I will need to be able do: >>> a=numpy.array( [(1,2,3)], list('lll') ) >>> a.astype( 'l' ) Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: an integer is required (and what a strange error message). Is there a workaround ? .tostring/.fromstring incurs a memcopy copy, if i am not mistaken. Simon. -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 02 6249 6940 http://arrowtheory.com |