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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to