Newby: how to transform text into lines of text

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sun Jan 25 19:59:05 EST 2009


On Sun, 25 Jan 2009 17:34:18 -0600, Tim Chase wrote:

> Thank goodness I haven't found any of my data-sources using "\n\r"
> instead, which would require me to left-strip '\r' characters as well. 
> Sigh.  My kingdom for competency. :-/

If I recall correctly, one of the accounting systems I used eight years 
ago gave you the option of exporting text files with either \r\n or \n\r 
as the end-of-line mark. Neither \n nor \r (POSIX or classic Mac) line 
endings were supported, as that would have been useful.

(It may have been Arrow Accounting, but don't quote me on that.)

I can only imagine the developer couldn't remember which order the 
characters were supposed to go, so rather than look it up, he made it 
optional.



-- 
Steven



More information about the Python-list mailing list