for(each) element aliasing

Matija Papec mpapec at yahoo.com
Mon Nov 22 19:35:13 CET 2004


>>    arr[:] = [a * 2 for a in arr]
>>    print arr
>
>I guess this works like "map" but "for" is more idimatic.

idiomatic


-- 
Matija



More information about the Python-list mailing list