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
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
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
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
>
>
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
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
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
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