[issue30324] Error using newline='' when writing to CSV file

Martin Panter report at bugs.python.org
Tue May 9 22:16:15 EDT 2017


Martin Panter added the comment:

On Python 2, I'm guessing you are getting extra CRs on Windows? It looks like you have to open in binary mode there to avoid newline translation. This is documented for the "reader" and "writer" functions.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30324>
_______________________________________


More information about the Python-bugs-list mailing list