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]_
976
976
| ``s * n `` or | equivalent to adding *s * to | (2)(7) |
977
977
| ``n * s `` | itself *n * times | |
978
978
+--------------------------+--------------------------------+----------+
979
- | ``s[i] `` | *i *\ th item of *s *, origin 0 | \ ( 3) |
979
+ | ``s[i] `` | *i *\ th item of *s *, origin 0 | (3)(9) |
980
980
+--------------------------+--------------------------------+----------+
981
981
| ``s[i:j] `` | slice of *s * from *i * to *j * | (3)(4) |
982
982
+--------------------------+--------------------------------+----------+
@@ -1108,6 +1108,9 @@ Notes:
1108
1108
without copying any data and with the returned index being relative to
1109
1109
the start of the sequence rather than the start of the slice.
1110
1110
1111
+ (9)
1112
+ An :exc: `IndexError ` is raised if *i * is outside the sequence range.
1113
+
1111
1114
1112
1115
.. _typesseq-immutable :
1113
1116
You can’t perform that action at this time.
0 commit comments