This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Improve the implementations of Sequence.index and MutableSequence.extend in collections.abc
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: maggyero, rhettinger
Priority: normal Keywords:

Created on 2022-03-31 05:38 by maggyero, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 32150 closed maggyero, 2022-03-31 05:38
Messages (2)
msg416415 - (view) Author: Géry (maggyero) * Date: 2022-03-31 05:38
This P.R. will make the following changes to the `collections.abc` module:

- simplify the implementation with slicing in function `Sequence.index`.
- remove an unnecessary copy of `self` when a sequence extends itself in function `MutableSequence.extend`.
msg416439 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2022-03-31 14:36
Marking as closed because the changes are incorrect.  See the comments in the PR.
History
Date User Action Args
2022-04-11 14:59:57adminsetgithub: 91334
2022-03-31 14:36:32rhettingersetstatus: open -> closed

assignee: rhettinger

nosy: + rhettinger
messages: + msg416439
resolution: rejected
stage: resolved
2022-03-31 05:38:23maggyerocreate