Commit 9892f454 authored by Jelle Zijlstra's avatar Jelle Zijlstra Committed by Cheryl Sabella

bpo-33519: clarify that .copy() is not part of the MutableSequence ABC (GH-6965)

parent da6129e8
......@@ -1114,7 +1114,7 @@ Notes:
item is removed and returned.
(3)
``remove`` raises :exc:`ValueError` when *x* is not found in *s*.
:meth:`remove` raises :exc:`ValueError` when *x* is not found in *s*.
(4)
The :meth:`reverse` method modifies the sequence in place for economy of
......@@ -1124,7 +1124,9 @@ Notes:
(5)
:meth:`clear` and :meth:`!copy` are included for consistency with the
interfaces of mutable containers that don't support slicing operations
(such as :class:`dict` and :class:`set`)
(such as :class:`dict` and :class:`set`). :meth:`!copy` is not part of the
:class:`collections.abc.MutableSequence` ABC, but most concrete
mutable sequence classes provide it.
.. versionadded:: 3.3
:meth:`clear` and :meth:`!copy` methods.
......
Clarify that `copy()` is not part of the `MutableSequence` ABC.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment