diff options
author | Michael Seifert <michaelseifert04@yahoo.de> | 2017-05-11 02:14:54 +0200 |
---|---|---|
committer | Michael Seifert <michaelseifert04@yahoo.de> | 2017-05-11 11:48:05 +0200 |
commit | 28e7cd9f488e260b2a6d153bbcf8d83e8685fe69 (patch) | |
tree | c6e5449dd05742d9fbe1547dc07629d037af6f56 /numpy/add_newdocs.py | |
parent | 22ccc378253c3c2beefc603a2e0bccc5a3a9e1d1 (diff) | |
download | numpy-28e7cd9f488e260b2a6d153bbcf8d83e8685fe69.tar.gz |
ENH: Allow inplace as keyword parameter for byteswap
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 4 |
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'] |