parse a csv file into a text file

Mark Lawrence breamoreboy at
Thu Feb 6 18:40:19 CET 2014

On 06/02/2014 14:02, Neil Cerutti wrote:
> You must open the file in binary mode, as that is what the csv
> module expects in Python 2.7. newline handling can be enscrewed
> if you forget.
> file = open('raw.csv', 'b')

I've never opened a file in binary mode to read with the csv module 
using any Python version.  Where does it state that you must do this?

My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

More information about the Python-list mailing list