[Python-Dev] CSV, bytes and encodings
aahz at pythoncraft.com
Thu Apr 2 06:35:22 CEST 2009
On Wed, Apr 01, 2009, skip at pobox.com wrote:
> Antoine> Perhaps. But without using 'rU' the file couldn't be read at
> Antoine> all. (I'm not sure it was Windows line endings by the way;
> Antoine> perhaps Macintosh ones; anyway, it didn't work using 'rb')
> Please file a bug report and assign to me. Does it work in 2.x? What was
> the source of the file?
Perhaps there have been changes, but in my last job, I was running into
this problem with Python 2.3, and I also needed to open with 'rU' under
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it." --Brian W. Kernighan
More information about the Python-Dev