summaryrefslogtreecommitdiff
path: root/numpy/add_newdocs.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-05-11 16:44:17 +0100
committerGitHub <noreply@github.com>2017-05-11 16:44:17 +0100
commit8ea619a8717d2c82d42e4662b2266121faba58e4 (patch)
treee501f49a68bf8f5affe4b894e52c7c5fb8792943 /numpy/add_newdocs.py
parent81728dc0bd862b8cd0b2dfec05afdea9dca419a5 (diff)
parent28e7cd9f488e260b2a6d153bbcf8d83e8685fe69 (diff)
downloadnumpy-8ea619a8717d2c82d42e4662b2266121faba58e4.tar.gz
Merge pull request #9096 from MSeifert04/inplace_keywordparam
ENH: Allow inplace also as keyword parameter for ndarray.byteswap
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r--numpy/add_newdocs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index 449196efb..8a016c966 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -3292,7 +3292,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('astype',
add_newdoc('numpy.core.multiarray', 'ndarray', ('byteswap',
"""
- a.byteswap(inplace)
+ a.byteswap(inplace=False)
Swap the bytes of the array elements
@@ -3315,7 +3315,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('byteswap',
>>> A = np.array([1, 256, 8755], dtype=np.int16)
>>> map(hex, A)
['0x1', '0x100', '0x2233']
- >>> A.byteswap(True)
+ >>> A.byteswap(inplace=True)
array([ 256, 1, 13090], dtype=int16)
>>> map(hex, A)
['0x100', '0x1', '0x3322']