diff options
author | Michael Seifert <michaelseifert04@yahoo.de> | 2017-10-08 23:59:56 +0200 |
---|---|---|
committer | Michael Seifert <michaelseifert04@yahoo.de> | 2017-10-13 14:06:29 +0200 |
commit | 14c22bed7d9bc0e25f38817192b27f9b3f3f4b65 (patch) | |
tree | 68e3a61b5cf0f98661f816e9cada1e48097755e4 /numpy/add_newdocs.py | |
parent | 6af2c42992f872233489ad00c5ac06ce5a430022 (diff) | |
download | numpy-14c22bed7d9bc0e25f38817192b27f9b3f3f4b65.tar.gz |
DOC: ndarray.__copy__ takes no arguments [skip ci]
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index e35337476..ce2f1c6ec 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -3096,17 +3096,11 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('__array_wrap__', add_newdoc('numpy.core.multiarray', 'ndarray', ('__copy__', - """a.__copy__([order]) + """a.__copy__() - Return a copy of the array. - - Parameters - ---------- - order : {'C', 'F', 'A'}, optional - If order is 'C' (False) then the result is contiguous (default). - If order is 'Fortran' (True) then the result has fortran order. - If order is 'Any' (None) then the result has fortran order - only if the array already is in fortran order. + Used if :func:`copy.copy` is called on an array. Returns a copy of the array. + + Equivalent to ``a.copy(order='K')``. """)) @@ -3114,7 +3108,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('__copy__', add_newdoc('numpy.core.multiarray', 'ndarray', ('__deepcopy__', """a.__deepcopy__(memo, /) -> Deep copy of array. - Used if copy.deepcopy is called on an array. + Used if :func:`copy.deepcopy` is called on an array. """)) |