Issue 31942: Document that support of start and stop parameters in the Sequence's index() is optional
Created on 2017-11-04 09:10 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 4277 | merged | nitishch, 2017-11-04 19:59 | |
| PR 4811 | merged | python-dev, 2017-12-12 10:22 | |
| Messages (6) | |||
|---|---|---|---|
| msg305547 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
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) * ![]() |
Date: 2017-11-06 16:33 | |
See also bpo-31956: "Add start and stop parameters to the array.index()". |
|||
| msg307834 - (view) | Author: Nitish (nitishch) * | Date: 2017-12-08 03:59 | |
Any comments on the PR? |
|||
| msg308105 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2017-12-12 10:22 | |
New changeset 5ce0a2a100909104836f53a2c8823006ec46f8ad by Victor Stinner (Nitish Chandra) in branch 'master': bpo-31942: Document optional support of start and stop attributes in Sequence.index method (#4277) https://github.com/python/cpython/commit/5ce0a2a100909104836f53a2c8823006ec46f8ad |
|||
| msg308110 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2017-12-12 10:58 | |
New changeset 78cd00b799be36a35c9f5cc99ce3bcef31112a5f by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-31942: Document optional support of start and stop attributes in Sequence.index method (GH-4277) (#4811) https://github.com/python/cpython/commit/78cd00b799be36a35c9f5cc99ce3bcef31112a5f |
|||
| msg308111 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2017-12-12 10:58 | |
Thanks Nitish Chandra for your doc enhancement! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:54 | admin | set | github: 76123 |
| 2017-12-12 10:58:55 | vstinner | set | status: open -> closed resolution: fixed messages: + msg308111 stage: patch review -> resolved |
| 2017-12-12 10:58:28 | vstinner | set | messages: + msg308110 |
| 2017-12-12 10:22:40 | python-dev | set | pull_requests: + pull_request4706 |
| 2017-12-12 10:22:37 | vstinner | set | messages: + msg308105 |
| 2017-12-08 03:59:27 | nitishch | set | messages: + msg307834 |
| 2017-11-06 16:33:04 | vstinner | set | nosy:
+ vstinner messages: + msg305651 |
| 2017-11-04 20:10:42 | nitishch | set | nosy:
+ nitishch |
| 2017-11-04 19:59:30 | nitishch | set | keywords:
+ patch stage: needs patch -> patch review pull_requests: + pull_request4239 |
| 2017-11-04 09:12:26 | serhiy.storchaka | set | nosy:
+ Devin Jeanpierre |
| 2017-11-04 09:10:01 | serhiy.storchaka | create | |
