how to join array of integers?

Eduardo O. Padoan eduardo.padoan at gmail.com
Sat Sep 15 13:11:37 EDT 2007


> > It's nice people have invented so many ways to spell the
> > builting "map" ;)
> >
> >>>> ",".join(map(str,[1,2,3]))
> > '1,2,3'
>
> IIRC, map's status as a builtin is going away.

Actually, py3k built-in map == itertools.imap

>>> map(str, [])
<itertools.imap object at 0xb7c7c9ec>

-- 
http://www.advogato.org/person/eopadoan/
Bookmarks: http://del.icio.us/edcrypt



More information about the Python-list mailing list