]> granicus.if.org Git - python/commitdiff
bpo-33519: clarify that .copy() is not part of the MutableSequence ABC (GH-6965)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Sun, 19 May 2019 00:17:56 +0000 (17:17 -0700)
committerCheryl Sabella <cheryl.sabella@gmail.com>
Sun, 19 May 2019 00:17:56 +0000 (20:17 -0400)
Doc/library/stdtypes.rst
Misc/NEWS.d/next/Documentation/2018-05-17-21-02-00.bpo-33519.Q7s2FB.rst [new file with mode: 0644]

index 53337291dd39ceb3f630e348e6241d92a259c2a7..293a1ab6a0d9663bc640553c6303d151316172bd 100644 (file)
@@ -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.
diff --git a/Misc/NEWS.d/next/Documentation/2018-05-17-21-02-00.bpo-33519.Q7s2FB.rst b/Misc/NEWS.d/next/Documentation/2018-05-17-21-02-00.bpo-33519.Q7s2FB.rst
new file mode 100644 (file)
index 0000000..0ee6c0d
--- /dev/null
@@ -0,0 +1 @@
+Clarify that `copy()` is not part of the `MutableSequence` ABC.