[New-bugs-announce] [issue47178] Improve the implementations of Sequence.index and MutableSequence.extend in collections.abc

Géry report at bugs.python.org
Thu Mar 31 01:38:23 EDT 2022


New submission from Géry <gery.ogam at gmail.com>:

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`.

----------
components: Library (Lib)
messages: 416415
nosy: maggyero
priority: normal
pull_requests: 30285
severity: normal
status: open
title: Improve the implementations of Sequence.index and MutableSequence.extend in collections.abc
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47178>
_______________________________________


More information about the New-bugs-announce mailing list