Serhiy Storchaka added the comment: I agree with you, but I think that Antoine disagrees.
My half-baked patch for issue20435 did a half of the work. It initialized the buffer directly in __init__. Here is the rebased version. There is a difference between C and Python implementations for universal newlines and test_newline_none fails. ---------- keywords: +patch Added file: http://bugs.python.org/file40571/stringio_newline_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22413> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com