parse a csv file into a text file

Tim Chase python.list at tim.thechases.com
Thu Feb 6 13:51:34 EST 2014


On 2014-02-06 18:34, Neil Cerutti wrote:
> They do actually mention it.
> 
> From: http://docs.python.org/2/library/csv.html
> 
>   If csvfile is a file object, it must be opened with
>   the ‘b’ flag on platforms where that makes a difference. 
> 
> So it's stipulated only for file objects on systems where it
> might make a difference.

Ah, I *knew* I'd read that somewhere but my searches in firefox (for
"binary", "rb" and "wb") didn't manage to catch that particular
instance.  Thanks for disinterring that.

-tkc





More information about the Python-list mailing list