Message126593
"docpatch" for 3.x csv docs:
In the csv.writer docs, insert the sentence "If csvfile is a file object, it should be opened with newline=''." immediately after the sentence "csvfile can be any object with a write() method."
In the closely-following example, change the open call from "open('eggs.csv', 'w')" to "open('eggs.csv', 'w', newline='')".
In section 13.1.5 Examples, there are 2 reader cases and 1 writer case that likewise need inserting ", newline=''" in the open call. |
|
Date |
User |
Action |
Args |
2011-01-20 06:43:39 | sjmachin | set | recipients:
+ sjmachin, skip.montanaro, baloan, eric.araujo, r.david.murray, zacktu |
2011-01-20 06:43:39 | sjmachin | set | messageid: <1295505819.38.0.863088601853.issue7198@psf.upfronthosting.co.za> |
2011-01-20 06:43:34 | sjmachin | link | issue7198 messages |
2011-01-20 06:43:34 | sjmachin | create | |
|