howto make Python list from numpy.array?

Amaury Forgeot d'Arc afaNOSPAM at neuf.fr
Sun May 6 15:58:16 EDT 2007


Hello,

John Nagle a écrit :
> dmitrey wrote:
>> howto make Python list from numpy.array?
>> Thx, D.
>>
> 
> lst = map(None, arr)        // for 1D arrays.

Which can be expressed more simply as:
   lst = list(arr)


-- 
Amaury



More information about the Python-list mailing list