[Python-Dev] RE: [Pythonmac-SIG] Mac Python and line-endings

Nathan Heagy nathan@vividworks.com
Tue, 18 Sep 2001 13:11:47 -0600 (CST)


> Also, Java supports this, and the algorithm to support it is not
> difficult: to read a line, read until you see either \r or \n; if you
> see \r, peek one character ahead and if that's a \n, include it in the
> line.

What about the mac where \r *is* the line ending?

Nathan