Steven D'Aprano added the comment: > lines = ''.join(substring + '\n' for substring in substrings)
Huh. There were three of us looking at this at work yesterday, and none of us thought of that. ---------- _______________________________________ 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