diff options
author | Nitish Chandra <nitishchandrachinta@gmail.com> | 2017-12-12 10:22:30 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-12-12 10:22:30 (GMT) |
commit | 5ce0a2a100909104836f53a2c8823006ec46f8ad (patch) | |
tree | 5031cf4b1b64f547bc1b639b34891065180d180e /Doc/library | |
parent | 2001900b0c02a397d8cf1d776a7cc7fcb2a463e3 (diff) | |
download | cpython-5ce0a2a100909104836f53a2c8823006ec46f8ad.zip cpython-5ce0a2a100909104836f53a2c8823006ec46f8ad.tar.gz cpython-5ce0a2a100909104836f53a2c8823006ec46f8ad.tar.bz2 |
bpo-31942: Document optional support of start and stop attributes in Sequence.index method (#4277)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/stdtypes.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 0bcafd3..de2fb27 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -973,9 +973,9 @@ Notes: (8) ``index`` raises :exc:`ValueError` when *x* is not found in *s*. - When supported, the additional arguments to the index method allow - efficient searching of subsections of the sequence. Passing the extra - arguments is roughly equivalent to using ``s[i:j].index(x)``, only + Not all implementations support passing the additional arguments *i* and *j*. + These arguments allow efficient searching of subsections of the sequence. Passing + the extra arguments is roughly equivalent to using ``s[i:j].index(x)``, only without copying any data and with the returned index being relative to the start of the sequence rather than the start of the slice. |