Message327084
| Author |
nascheme |
| Recipients |
nascheme, xtreak |
| Date |
2018年10月04日.20:38:13 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1538685493.67.0.545547206417.issue34801@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Perhaps the 'csv' module should do some sanity checking on the file passed to the reader. The docs recommend that newline='' be used to open the file. Maybe 'csv' could check that and warn if its not the case. I poked around but it seems like io files don't have a handy property to check for that. Further, maybe 'csv' could check if the file is a codecs.StreamReader object. In that case, there is no way to turn off the extra newline characters and so that's probably a bug. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2018年10月04日 20:38:13 | nascheme | set | recipients:
+ nascheme, xtreak |
| 2018年10月04日 20:38:13 | nascheme | set | messageid: <1538685493.67.0.545547206417.issue34801@psf.upfronthosting.co.za> |
| 2018年10月04日 20:38:13 | nascheme | link | issue34801 messages |
| 2018年10月04日 20:38:13 | nascheme | create |
|