File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -976,7 +976,7 @@ operations have the same priority as the corresponding numeric operations. [3]_
976976| ``s * n `` or | equivalent to adding *s * to | (2)(7) |
977977| ``n * s `` | itself *n * times | |
978978+--------------------------+--------------------------------+----------+
979- | ``s[i] `` | *i *\ th item of *s *, origin 0 | \ ( 3) |
979+ | ``s[i] `` | *i *\ th item of *s *, origin 0 | (3)(9) |
980980+--------------------------+--------------------------------+----------+
981981| ``s[i:j] `` | slice of *s * from *i * to *j * | (3)(4) |
982982+--------------------------+--------------------------------+----------+
@@ -1108,6 +1108,9 @@ Notes:
11081108 without copying any data and with the returned index being relative to
11091109 the start of the sequence rather than the start of the slice.
11101110
1111+ (9)
1112+ An :exc: `IndexError ` is raised if *i * is outside the sequence range.
1113+
11111114
11121115.. _typesseq-immutable :
11131116
You can’t perform that action at this time.
0 commit comments