Jason R. Coombs <jar...@jaraco.com> added the comment:

Although this was fixed for 3.1, it appears not to be fixed for Python
2.6 or 2.7.

PS C:\Users\jaraco> python
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import io
>>> io.StringIO('foo\r\nbar\r\n', newline=None).read()
u'foo\n\nbar\n\n'

Note that this behavior is slightly different from what pitrou reported.

If this cannot be fixed in 2.6, the documentation should at least
reflect that it doesn't work until a later version.

----------
nosy: +jaraco

_______________________________________
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

Reply via email to