[issue5451] patch to make io.StringIO consistent with open with respect to newlines

Erick Tryzelaar report at bugs.python.org
Mon Mar 9 01:55:03 CET 2009

Erick Tryzelaar <idadesub at users.sourceforge.net> added the comment:

Thanks Benjamin. Could the documentation for StringIO be updated then? The 
docs for io.StringIO [1] says that io.TextIOWrapper implements the 
constructor, but TextIOWrapper defaults newline to None [2], and there's 
nothing that states that io.StringIO changes the default to newline='\n'.

[1]: http://docs.python.org/3.0/library/io.html#io.StringIO
[2]: http://docs.python.org/3.0/library/io.html#io.TextIOWrapper

message_count: 2.0 -> 3.0

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list