summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2019-05-19 00:17:56 (GMT)
committerCheryl Sabella <cheryl.sabella@gmail.com>2019-05-19 00:17:56 (GMT)
commit9892f454d11b7ea9ba394a115b3e6f48ef6f78fe (patch)
treef174508706c37c5f6c432e1b7dc3075e82b59b4b /Doc
parentda6129e821099c1372d511a11d18af83d6d5d128 (diff)
downloadcpython-9892f454d11b7ea9ba394a115b3e6f48ef6f78fe.zip
cpython-9892f454d11b7ea9ba394a115b3e6f48ef6f78fe.tar.gz
cpython-9892f454d11b7ea9ba394a115b3e6f48ef6f78fe.tar.bz2
bpo-33519: clarify that .copy() is not part of the MutableSequence ABC (GH-6965)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 5333729..293a1ab 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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.