[Python-checkins] r54984 - python/trunk/Doc/tut/tut.tex (original) (raw)
steve.holden python-checkins at python.org
Thu Apr 26 16:23:17 CEST 2007
- Previous message: [Python-checkins] r54983 - python/trunk/Lib/test/test_locale.py
- Next message: [Python-checkins] r54985 - python/trunk/Modules/_bsddb.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: steve.holden Date: Thu Apr 26 16:23:12 2007 New Revision: 54984
Modified: python/trunk/Doc/tut/tut.tex Log: Minor wording change on slicing aide-memoire.
Modified: python/trunk/Doc/tut/tut.tex
--- python/trunk/Doc/tut/tut.tex (original) +++ python/trunk/Doc/tut/tut.tex Thu Apr 26 16:23:12 2007 @@ -813,7 +813,7 @@ IndexError: string index out of range \end{verbatim}
-The best way to remember how slices work is to think of the indices as +One way to remember how slices work is to think of the indices as pointing \emph{between} characters, with the left edge of the first character numbered 0. Then the right edge of the last character of a string of \var{n} characters has index \var{n}, for example:
- Previous message: [Python-checkins] r54983 - python/trunk/Lib/test/test_locale.py
- Next message: [Python-checkins] r54985 - python/trunk/Modules/_bsddb.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]