Grouping code by indentation - feature or ******?

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Sun Mar 27 12:11:28 EST 2005


Javier Bezos wrote:

> MetaFont explains this by saying that the index
> doesn't refer to a character but to a position
> between characters, which when traslated to Python
> would mean:
> 
>    s   t   r   i   n   g
>  ^   ^   ^   ^   ^   ^   ^
>  0   1   2   3   4   5   6
> 
> so that [1:2] is "t".

Incidentally, the Python Tutorial tells us exactly the same...

Reinhold



More information about the Python-list mailing list