[Pythonmac-SIG] Re: MacPython and line-endings
Doug Wyatt
doug@sonosphere.com
Sun, 7 Oct 2001 08:29:01 -0700
On Friday, October 5, 2001, at 07:20 , Guido van Rossum wrote:
> Just one thing: for the Python programmer, a line end should *always*
> appear as \n. Files in text mode are supposed to maintain this
> abstraction. You should *not* have to know that on Windows it's
> really \r\n, nor that on Mac it's really \r. (BTW what is it on MacOS
> X, which is Unix based?)
It's whatever the developer wants it to be ... :-/ It depends on the
ancestry of the code that's reading and writing files.
Traditional Mac apps continue to use \r.
Pretty much everything else uses \n.
Doug
--
Doug Wyatt
work: dwyatt@apple.com (CoreAudio)
personal: doug@sonosphere.com http://www.sonosphere.com
"It's kind of fun to do the impossible."
-- Walt Disney