Message337046
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. |
|
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 | |
|