Char handling DOS vs Linux?

Aahz Maruch aahz at
Wed Sep 20 03:37:35 CEST 2000

In article <39C81033.DBC3D150 at>,
David Lees  <debl.spammono.nospammy at> wrote:
>I wrote a short piece of python code running under 1.5.2 for striping
>out those extra carriage returns that DOS editors stick into text.  When
>I run this on my Linux box all works fine.  When I run the same code
>under Win 95 it does nothing.  It appears from using the debugger that
>the '\r' carriage returns are never seen when running under Windows.  Is
>there a different Python I/O function I should be using to see ALL the
>charaters in a file?

f = open ( filename, "rb" )
                      --- Aahz (Copyright 2000 by aahz at

Androgynous poly kinky vanilla queer het    <*>
Hugs and backrubs -- I break Rule 6

Member of the Groucho Marx Fan Club  --Aahz

More information about the Python-list mailing list