Does Python mess with CRLFs?

Gilles Ganault nospam at
Wed Nov 12 12:33:06 CET 2008

On Wed, 12 Nov 2008 12:04:07 +0100, Gilles Ganault <nospam at>
>I wonder if Python rewrites CRLFs when reading a text file with

For those seeing the same thing, the answer is yes: On Windows, the
code above turns CRLF into LF. I tried "rb" instead of "r", with no

More information about the Python-list mailing list