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 martin.panter
Recipients Shane Smith, martin.panter
Date 2019-03-03.21:08:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551647313.22.0.223093136711.issue36172@roundup.psfhosted.org>
In-reply-to
Content
The documentation <https://docs.python.org/dev/library/csv.html#module-contents> says you should “open the files with newline=''.” IMO this is an unfortunate quirk of the CSV module. Everything else that I know of in the Python built-in library either works with binary files, which typically do no newline translation in Python 3, or is fine with newline translation enabled in text mode. See also Issue 10954 about making the behaviour stricter.
History
Date User Action Args
2019-03-03 21:08:33martin.pantersetrecipients: + martin.panter, Shane Smith
2019-03-03 21:08:33martin.pantersetmessageid: <1551647313.22.0.223093136711.issue36172@roundup.psfhosted.org>
2019-03-03 21:08:33martin.panterlinkissue36172 messages
2019-03-03 21:08:32martin.pantercreate