Reading a DOS text file and writing out Mac

jennyw jennyw at
Fri Jul 11 18:57:26 CEST 2003

Is there a way to set the EOL character that Python recognizes? For 
example, I'd like to set it to cr/lf (okay, that's eol characters) when 
reading a file (DOS text) and set it to just cr when writing out (Mac). 
Is there a way to do this?



More information about the Python-list mailing list