join accepts only lists of strings, so convert them first
>>> e = ('ham', 5, 1, 'bird') >>> ','.join(map(str,e)) 'ham,5,1,bird'
Or maybe more pythonic
>>> ','.join(str(i) for i in e) 'ham,5,1,bird'
Nick Craig-Wood Nov 29 '09 at 11:43 2009-11-29 11:43
source share