Yes yes, I am aware that '

' writes a newline in UNIX while for Windows there is the two character sequence: '\r

' . All this is very nice in theory, but my question is why? Why the carriage return character is extra in Windows? If UNIX can do it in

why does it take Windows two characters to do this?

I am reading David Beazley's Python book and he says:

For example, on Windows, writing the character '

' actually outputs the two- character sequence '\r

' (and when reading the file back, '\r

' is translated back into a single '

' character).

Why the extra effort?

I will be honest. I have known the difference for a long time but have never bothered to ask WHY. I hope that is answered today.

Thanks for your time.