summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/_add_newdocs.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py
index f71136eef..50ec50d2d 100644
--- a/numpy/core/_add_newdocs.py
+++ b/numpy/core/_add_newdocs.py
@@ -1601,6 +1601,12 @@ add_newdoc('numpy.core.multiarray', 'frombuffer',
-------
out : ndarray
+ See also
+ --------
+ ndarray.tobytes
+ Inverse of this operation, construct Python bytes from the raw data
+ bytes in the array.
+
Notes
-----
If the buffer has data that is not in machine byte-order, this should
@@ -4458,6 +4464,12 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('tobytes', """
s : bytes
Python bytes exhibiting a copy of `a`'s raw data.
+ See also
+ --------
+ frombuffer
+ Inverse of this operation, construct a 1-dimensional array from Python
+ bytes.
+
Examples
--------
>>> x = np.array([[0, 1], [2, 3]], dtype='<u2')