[docs] [issue8387] use universal newline mode in csv module examples

R. David Murray report at bugs.python.org
Sun Apr 20 04:27:56 CEST 2014


R. David Murray added the comment:

The magic of newline='' in python3 is that it *preserves* the line end characters, which is the same thing binary mode does on windows.  The place that matters, as I remember it, is when there is a newline embedded inside a quoted string.  I don't remember *why* that matters, though :(.  But it had something to do with how the csv module processes the data internally.

----------

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


More information about the docs mailing list