This is actually a long and formatted comment on the last answer. Still not knowing any Python, I am a bit disappointed by not using join
to get commas between each address (like suggested by liori). Replacing the comma with some space feels like walking away from the problem, and is not going to learn anyone anything. We don't sacrifice quality here at Stack Overflow! ;-)
I just typed the following on my Mac:
$ python
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> lst = [ u'[email protected]', u'[email protected]', u'[email protected]' ]
>>> print lst
[u'[email protected]', u'[email protected]', u'[email protected]']
>>> print ', '.join(lst)
[email protected], [email protected], [email protected]
>>> print 'Emails: [%s]' % ', '.join(lst)
Emails: [[email protected], [email protected], [email protected]]
>>> lst = [ u'[email protected]' ]
>>> print lst
[u'[email protected]']
>>> print ', '.join(lst)
[email protected]
>>> print 'Emails: [%s]' % ', '.join(lst)
Emails: [[email protected]]
>>> s = u'[email protected]'
>>> print s
[email protected]
>>> print ', '.join(s)
o, n, e, @, e, x, a, m, p, l, e, ., c, o, m
Makes perfect sense to me... Now, using a different separator for the last item (like [email protected], [email protected] and [email protected]) will need some more work, but printing the very same separator between each item should not be complicated at all.