[Tutor] tokenize row numbering
Andrei
project5 at redrival.net
Mon May 2 13:07:00 CEST 2005
Chris Smith <smichr <at> bigfoot.com> writes:
> ###
> # line 1 according to tokenize tuple
> # line 2
> a=b #line 3
> ###
>
> Does anyone have an idea of *why* the rows/physical lines of code
> beginning their count at 1 instead of 0? In order to process the code I
The snippet above shows that numbering begins at 0, with the fourth line having
number 3. So either I misunderstand the question, or the snippet is confusing.
That being said, I can imagine counting lines from 1 because programming editors
also tend to count from 1 instead of 0 and this way it's consistent.
Yours,
Andrei
More information about the Tutor
mailing list