classification
Title: Document that support of start and stop parameters in the Sequence's index() is optional
Type: behavior Stage: patch review
Components: Documentation Versions: Python 3.7, Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Devin Jeanpierre, docs@python, nitishch, rhettinger, serhiy.storchaka, vstinner
Priority: normal Keywords: easy, patch

Created on 2017-11-04 09:10 by serhiy.storchaka, last changed 2017-11-06 16:33 by vstinner.

Pull Requests
URL Status Linked Edit
PR 4277 open nitishch, 2017-11-04 19:59
Messages (2)
msg305547 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-11-04 09:10
Parameters start and stop were added to the Sequence.index() mixin method in 3.5 (see issue23086). But not all concrete implementations of the Sequence ABC support them (for example range.index() doesn't, see issue28197). This should be explicitly documented (including the docstring of Sequence.index).
msg305651 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-11-06 16:33
See also bpo-31956: "Add start and stop parameters to the array.index()".
History
Date User Action Args
2017-11-06 16:33:04vstinnersetnosy: + vstinner
messages: + msg305651
2017-11-04 20:10:42nitishchsetnosy: + nitishch
2017-11-04 19:59:30nitishchsetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request4239
2017-11-04 09:12:26serhiy.storchakasetnosy: + Devin Jeanpierre
2017-11-04 09:10:01serhiy.storchakacreate