summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-12-09 13:09:14 (GMT)
committerGitHub <noreply@github.com>2019-12-09 13:09:14 (GMT)
commit0131aba5ae20d704b972ecd2ef0fc6c9e370a1b3 (patch)
tree2b0d2377452d9be8d09b46f38fffbceb4692110d /Doc
parenta1838ec2592e5082c75c77888f2a7a3eb21133e5 (diff)
downloadcpython-0131aba5ae20d704b972ecd2ef0fc6c9e370a1b3.zip
cpython-0131aba5ae20d704b972ecd2ef0fc6c9e370a1b3.tar.gz
cpython-0131aba5ae20d704b972ecd2ef0fc6c9e370a1b3.tar.bz2
bpo-38916: array.array: remove fromstring() and tostring() (GH-17487)
array.array: Remove tostring() and fromstring() methods. They were aliases to tobytes() and frombytes(), deprecated since Python 3.2.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/array.rst10
-rw-r--r--Doc/whatsnew/3.9.rst5
2 files changed, 5 insertions, 10 deletions
diff --git a/Doc/library/array.rst b/Doc/library/array.rst
index 2ae2a07..c9a9b1d 100644
--- a/Doc/library/array.rst
+++ b/Doc/library/array.rst
@@ -169,11 +169,6 @@ The following data items and methods are also supported:
a.append(x)`` except that if there is a type error, the array is unchanged.
-.. method:: array.fromstring()
-
- Deprecated alias for :meth:`frombytes`.
-
-
.. method:: array.fromunicode(s)
Extends this array with data from the given unicode string. The array must
@@ -231,11 +226,6 @@ The following data items and methods are also supported:
Convert the array to an ordinary list with the same items.
-.. method:: array.tostring()
-
- Deprecated alias for :meth:`tobytes`.
-
-
.. method:: array.tounicode()
Convert the array to a unicode string. The array must be a type ``'u'`` array;
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index 1cd96ef..7cf49bf 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -279,6 +279,11 @@ Deprecated
Removed
=======
+* :class:`array.array`: ``tostring()`` and ``fromstring()`` methods have been
+ removed. They were aliases to ``tobytes()`` and ``frombytes()``, deprecated
+ since Python 3.2.
+ (Contributed by Victor Stinner in :issue:`38916`.)
+
* The abstract base classes in :mod:`collections.abc` no longer are
exposed in the regular :mod:`collections` module. This will help
create a clearer distinction between the concrete classes and the abstract