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 @@ -1018,7 +1018,7 @@ operations have the same priority as the corresponding numeric operations. [3]_
1018
1018
| ``s * n `` or | equivalent to adding *s * to | (2)(7) |
1019
1019
| ``n * s `` | itself *n * times | |
1020
1020
+--------------------------+--------------------------------+----------+
1021
- | ``s[i] `` | *i *\ th item of *s *, origin 0 | \ ( 3) |
1021
+ | ``s[i] `` | *i *\ th item of *s *, origin 0 | (3)(9) |
1022
1022
+--------------------------+--------------------------------+----------+
1023
1023
| ``s[i:j] `` | slice of *s * from *i * to *j * | (3)(4) |
1024
1024
+--------------------------+--------------------------------+----------+
@@ -1150,6 +1150,9 @@ Notes:
1150
1150
without copying any data and with the returned index being relative to
1151
1151
the start of the sequence rather than the start of the slice.
1152
1152
1153
+ (9)
1154
+ An :exc: `IndexError ` is raised if *i * is outside the sequence range.
1155
+
1153
1156
1154
1157
.. _typesseq-immutable :
1155
1158
You can’t perform that action at this time.
0 commit comments