This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients couplewavylines, docs@python, serhiy.storchaka
Date 2014-01-28.19:37:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390937843.96.0.682710358648.issue20423@psf.upfronthosting.co.za>
In-reply-to
Content
No, actual default is '\n'.

>>> io.StringIO('abc\r\ndef\nghi\rklm').readlines()
['abc\r\n', 'def\n', 'ghi\rklm']
>>> io.StringIO('abc\r\ndef\nghi\rklm', newline=None).readlines()
['abc\n', 'def\n', 'ghi\n', 'klm']
>>> io.StringIO('abc\r\ndef\nghi\rklm', newline='').readlines()
['abc\r\n', 'def\n', 'ghi\r', 'klm']
>>> io.StringIO('abc\r\ndef\nghi\rklm', newline='\n').readlines()
['abc\r\n', 'def\n', 'ghi\rklm']
>>> io.StringIO('abc\r\ndef\nghi\rklm', newline='\r').readlines()
['abc\r', '\r', 'def\r', 'ghi\r', 'klm']
>>> io.StringIO('abc\r\ndef\nghi\rklm', newline='\r\n').readlines()
['abc\r\r\n', 'def\r\n', 'ghi\rklm']
History
Date User Action Args
2014-01-28 19:37:23serhiy.storchakasetrecipients: + serhiy.storchaka, docs@python, couplewavylines
2014-01-28 19:37:23serhiy.storchakasetmessageid: <1390937843.96.0.682710358648.issue20423@psf.upfronthosting.co.za>
2014-01-28 19:37:23serhiy.storchakalinkissue20423 messages
2014-01-28 19:37:23serhiy.storchakacreate