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 ammar2
Recipients ammar2, pashkasan, rhettinger, ronaldoussoren
Date 2018-10-01.13:47:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538401668.54.0.545547206417.issue34859@psf.upfronthosting.co.za>
In-reply-to
Content
Please read this excerpt from the documentation Ronald linked for open:

newline controls how universal newlines mode works (it only applies to text mode). It can be None, '', '\n', '\r', and '\r\n'. It works as follows:

When reading input from the stream, if newline is None, universal newlines mode is enabled. Lines in the input can end in '\n', '\r', or '\r\n', and these are translated into '\n' before being returned to the caller. If it is '', universal newlines mode is enabled, but line endings are returned to the caller untranslated. If it has any of the other legal values, input lines are only terminated by the given string, and the line ending is returned to the caller untranslated.
When writing output to the stream, if newline is None, any '\n' characters written are translated to the system default line separator, os.linesep. If newline is '' or '\n', no translation takes place. If newline is any of the other legal values, any '\n' characters written are translated to the given string.
History
Date User Action Args
2018-10-01 13:47:48ammar2setrecipients: + ammar2, rhettinger, ronaldoussoren, pashkasan
2018-10-01 13:47:48ammar2setmessageid: <1538401668.54.0.545547206417.issue34859@psf.upfronthosting.co.za>
2018-10-01 13:47:48ammar2linkissue34859 messages
2018-10-01 13:47:48ammar2create