STINNER Victor added the comment: > '\n'.join(['first', 'second', 'third'])
Hum, the workaround is simple: lines = ['first', 'second', 'third'] lines.append('') assert '\n'.join(lines) == 'first\nsecond\nthird\n' ---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28205> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com