opposite of zip()?

greg greg at cosc.canterbury.ac.nz
Sat Dec 15 18:40:06 EST 2007


igor.tatarinov at gmail.com wrote:
>    map(append, arrays, tupl)
> except there is no unbound append() (List.append() does not exist,
> right?).

Er, no, but list.append does:

 >>> list.append
<method 'append' of 'list' objects>

so you should be able to do

   map(list.append, arrays, tupl)

provided you know that all the elements of 'arrays' are
actual lists.

--
Greg



More information about the Python-list mailing list