STINNER Victor added the comment: I agree that StringIO should accept lone surrogates as str += str accept them.
The patch looks good, but please mention the issue number in the unit test. And add an empty line between the two parts of the test (reader, writer). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20424> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com