js escribió: >> On 9/15/07, Summercool <[EMAIL PROTECTED]> wrote:
>> in Python... is the method to use ",".join() ? but then it must take >> a list of strings... not integers... >> >> any fast method? > print ''.join([str(i) for i in [1,2,3]]) It's better to use generator comprehension instead of LC: ",".join(str(i) for i in [1, 2, 3]) Or, if you happen to like the itertools modules: from itertools import imap ",".join(imap(str, [1, 2, 3])) -- http://mail.python.org/mailman/listinfo/python-list