From 28e7cd9f488e260b2a6d153bbcf8d83e8685fe69 Mon Sep 17 00:00:00 2001 From: Michael Seifert Date: Thu, 11 May 2017 02:14:54 +0200 Subject: ENH: Allow inplace as keyword parameter for byteswap --- numpy/add_newdocs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/add_newdocs.py') 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'] -- cgit v1.2.1