3 Simple Questions About Python/IDLE

Neil Cerutti horpner at yahoo.com
Thu Sep 7 14:53:11 EDT 2006


On 2006-09-07, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> On 7 Sep 2006 06:53:44 -0700, "Omar" <outstretchedarm at hotmail.com>
> declaimed the following in comp.lang.python:
>> 1) why don't python / idle use numbered lines in their
>> scripting, like basic?  how do you keep track of large batches
>> of code without them?
>
> Because BASIC was created in the days of paper teletypes with
> minimal editors. In BASIC, you would correct a line by retyping it with
> the line number and the interpreter was responsible for "reordering" the
> lines in memory. You could actually type a program in from last line to
> first (ie, upside down) and it would run.
>
> NO other language that I know of uses line numbers to control
> source code order. Heck, Visual BASIC doesn't use line numbers
> either (I don't recall if AmigaBASIC required them either).

(Nope.)

-- 
Neil Cerutti



More information about the Python-list mailing list