New submission from Antoine Pitrou <pit...@free.fr>: This one is a bit strange:
>>> f = io.StringIO("a\r\nb\r\n", newline=None) >>> f.read() 'a\nb\n' >>> f = io.StringIO("a\r\nb\r\n", newline=None) >>> f.read(6) 'a\nb\n' >>> f = io.StringIO("a\r\nb\r\n", newline=None) >>> f.read(5) 'a\n\nb\n' ---------- messages: 82132 nosy: alexandre.vassalotti, pitrou priority: normal severity: normal stage: needs patch status: open title: StringIO can duplicate newlines in universal newlines mode type: behavior versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5265> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com