Paul Moore <p.f.mo...@gmail.com> added the comment:

Because if you open a file in text mode (without "b" in the mode), Python 
writes \n (newline) characters as \r\n (carriage return, line feed) which are 
the Windows textfile representation of "Newline".

>From the documentation of the built in open() function,

"When writing output to the stream, if newline is None, any '\n' characters 
written are translated to the system default line separator, os.linesep."

----------
resolution:  -> not a bug

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40863>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to