Message 337046 - Python tracker (original) (raw)
Message337046
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:33 | martin.panter | set | recipients: + martin.panter, Shane Smith |
2019-03-03 21:08:33 | martin.panter | set | messageid: 1551647313.22.0.223093136711.issue36172@roundup.psfhosted.org |
2019-03-03 21:08:33 | martin.panter | link | issue36172 messages |
2019-03-03 21:08:32 | martin.panter | create |