summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2020-03-30 11:17:13 +0100
committerEric Wieser <wieser.eric@gmail.com>2020-03-30 18:25:57 +0100
commit7668a3353b87b4b1d4a5a31cec16bce36200812d (patch)
tree156afd6d3bee57e67ef1313e7671a230ad906f9a /doc
parentb3f41eeafd2708a6b519cf3c7ba3576dfa1cc5b3 (diff)
downloadnumpy-7668a3353b87b4b1d4a5a31cec16bce36200812d.tar.gz
DEP: Deprecate ndarray.tostring()
The corresponding `array.array.tostring()` in the standard library has been deprecated in favor of `tobytes` since Python 3.1 (python/cpython@1ce3eb5c5b4830e69b21865e2d723e22749544e0).
Diffstat (limited to 'doc')
-rw-r--r--doc/release/upcoming_changes/15867.deprecation.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/15867.deprecation.rst b/doc/release/upcoming_changes/15867.deprecation.rst
new file mode 100644
index 000000000..96c0d90e8
--- /dev/null
+++ b/doc/release/upcoming_changes/15867.deprecation.rst
@@ -0,0 +1,4 @@
+``numpy.ndarray.tostring()`` is deprecated in favor of ``tobytes()``
+--------------------------------------------------------------------
+`~numpy.ndarray.tobytes` has existed since the 1.9 release, but until this release `~numpy.ndarray.tostring` emitted no warning.
+The change to emit a warning brings NumPy in line with the builtin `array.array` methods of the same name.