[issue37709] CSVReader ignores dialect.lineterminator
Skip Montanaro
report at bugs.python.org
Mon Jul 29 22:18:15 EDT 2019
Skip Montanaro <skip.montanaro at gmail.com> added the comment:
I imagine this is a corner case which will continue to cause problems. At the time the csv module was originally written, I believe the authors' intent was to read and write CSV files which were compatible with Excel. In Python 3, you have to open input files in text mode (that provides the underlying line splitting behavior). Consequently, you're not going to see proper line splitting with unadorned files.
Have you only tried this with Python 3? If you have tried Python 2, were you able to get it to work without your workaround?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37709>
_______________________________________
More information about the Python-bugs-list
mailing list