summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-04-01 12:23:05 +0300
committerGitHub <noreply@github.com>2020-04-01 12:23:05 +0300
commitad5d58c29ab4793cd66afa07eed0f77c7ad59dc4 (patch)
treee584552ae04d7b9d64d45f33adfce643b91bac86 /doc
parent9ccb42d02f7b3fb2b47854bbd4ab418676e6be42 (diff)
parent6df5d8f8f55156aeb798dfd8be2425e5adbefbf1 (diff)
downloadnumpy-ad5d58c29ab4793cd66afa07eed0f77c7ad59dc4.tar.gz
Merge pull request #15867 from eric-wieser/deprecate-tostring
DEP: Deprecate ndarray.tostring()
Diffstat (limited to 'doc')
-rw-r--r--doc/release/upcoming_changes/15867.deprecation.rst6
1 files changed, 6 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..79e3a638f
--- /dev/null
+++ b/doc/release/upcoming_changes/15867.deprecation.rst
@@ -0,0 +1,6 @@
+``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.