summaryrefslogtreecommitdiff
path: root/numpy/add_newdocs.py
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2008-04-30 22:06:41 +0000
committerStefan van der Walt <stefan@sun.ac.za>2008-04-30 22:06:41 +0000
commite285208a309b44ccc88e28c60140474acb7cc83b (patch)
treee8f92f17aeb27b78e51cc4c44f1eb991f347df32 /numpy/add_newdocs.py
parent21a7341b383356ba99c10eda9654a4470e1247a0 (diff)
downloadnumpy-e285208a309b44ccc88e28c60140474acb7cc83b.tar.gz
For x.view, change dtype into keyword argument.
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r--numpy/add_newdocs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index 85e7bdbba..17d21cd7c 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -2198,15 +2198,15 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('var',
add_newdoc('numpy.core.multiarray', 'ndarray', ('view',
- """a.view(type)
+ """a.view(dtype=None)
New view of array with the same data.
Parameters
----------
- type
- Either a new sub-type object or a data-descriptor object
-
+ dtype : sub-type or data-descriptor
+ Data-type of the returned view.
+
"""))
add_newdoc('numpy.core.umath','geterrobj',