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 skip.montanaro
Recipients Benjamin Schollnick, skip.montanaro, xtreak
Date 2019-07-30.02:18:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564453095.26.0.586024599542.issue37709@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2019-07-30 02:18:15skip.montanarosetrecipients: + skip.montanaro, xtreak, Benjamin Schollnick
2019-07-30 02:18:15skip.montanarosetmessageid: <1564453095.26.0.586024599542.issue37709@roundup.psfhosted.org>
2019-07-30 02:18:15skip.montanarolinkissue37709 messages
2019-07-30 02:18:15skip.montanarocreate