int to str in list elements..

Tobias K. tobiaskk at mac.com
Sun Oct 14 20:30:16 CEST 2007


1. Use a generator expression:
b = ",".join(str(i) for i in a)

or

2. Use imap
from itertools import imap
b = ",".join(imap(str, a))



More information about the Python-list mailing list