[Python-Dev] New lines, carriage returns, and Windows
Dino Viehland
dinov at exchange.microsoft.com
Thu Sep 27 18:49:07 CEST 2007
> This I don't understand. Why don't you just use binary mode then?
> At least for Python 2.x, the *only* difference between text and
> binary mode is the treatment of line endings.
That just flips the problem to the other side. Now if I have a
Python library that I'm mixing w/ .NET code I need to be sure to
transform the line endings, but now from \n -> \r\n (and hopefully
they'd detect the new-line style they should use so it works
correctly on Mono on *nix or Silverlight on OS X as well).
More information about the Python-Dev
mailing list