> From: Andrei
>> ###
>> # 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
Chris Smith 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 b
I got over my intimidation with tokenize and learned to use it to strip
comments from code files. In the process, I learned that the tuples
that it returns for the position in the code of various tokens is
1-based in the row rather than 0-based, so the tuple pair (3,1),(3,2)
would be the start