Re: Reading in cooked mode (was Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary)

2014-03-27 Thread Mark H Harris
On 3/25/14 6:38 PM, Dennis Lee Bieber wrote: A couple of us managed to "steal" the school login/password (don't think we ever used it, but...)... The teaching assistant didn't notice the paper tape punch was active when persuaded to login to let us run a short program (high school BASIC

Re: Reading in cooked mode (was Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary)

2014-03-24 Thread Mark H Harris
On 3/24/14 6:30 PM, Dennis Lee Bieber wrote: {And I recall standard practice was to hit \r, to return the carriage, \n for next line, and one RUBOUT to provide a delay while the carriage returned to the left} Yes, yes... I remember well, there had to be a delay (of some type) to wait for the h

Re: Reading in cooked mode (was Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary)

2014-03-23 Thread Mark H Harris
On 3/23/14 10:17 PM, Chris Angelico wrote: Newline style IS relevant. You're saying that this will copy a file perfectly: out = open("out", "w") for line in open("in"): out.write(line) but it wouldn't if the iteration and write stripped and recreated newlines? Incorrect, because this versi

Re: Reading in cooked mode (was Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary)

2014-03-23 Thread Chris Angelico
On Mon, Mar 24, 2014 at 1:37 PM, Steven D'Aprano wrote: > On Sun, 23 Mar 2014 12:37:43 +1100, Chris Angelico wrote: >> And lines are delimited entities. A text file is a sequence of lines, >> separated by certain characters. > > Are they really separated, or are they terminated? > > a\nb\n > >

Re: Reading in cooked mode (was Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary)

2014-03-23 Thread Steven D'Aprano
On Sun, 23 Mar 2014 12:37:43 +1100, Chris Angelico wrote: > On Sun, Mar 23, 2014 at 12:07 PM, Steven D'Aprano > wrote: >> On Sun, 23 Mar 2014 02:09:20 +1100, Chris Angelico wrote: >> >>> On Sun, Mar 23, 2014 at 1:50 AM, Steven D'Aprano >>> wrote: Line endings are terminators: they end the l

Re: Reading in cooked mode

2014-03-23 Thread Marko Rauhamaa
Cameron Simpson : > Plenty of people use editors that consider end-of-line to be a > separator and not a terminator, leading to supposed text files lacking > trailing newlines (or end-of-line of OS). I use an editor (emacs) that considers the end-of-line to be a byte among others. > I consider t

Re: Reading in cooked mode (was Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary)

2014-03-22 Thread Cameron Simpson
On 23Mar2014 12:37, Chris Angelico wrote: > On Sun, Mar 23, 2014 at 12:07 PM, Steven D'Aprano > wrote: > > On Sun, 23 Mar 2014 02:09:20 +1100, Chris Angelico wrote: > >> On Sun, Mar 23, 2014 at 1:50 AM, Steven D'Aprano > >> wrote: > >>> Line endings are terminators: they end the line. Whether yo

Reading in cooked mode (was Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary)

2014-03-22 Thread Chris Angelico
On Sun, Mar 23, 2014 at 12:07 PM, Steven D'Aprano wrote: > On Sun, 23 Mar 2014 02:09:20 +1100, Chris Angelico wrote: > >> On Sun, Mar 23, 2014 at 1:50 AM, Steven D'Aprano >> wrote: >>> Line endings are terminators: they end the line. Whether you consider >>> the terminator part of the line or not