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

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to