diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/_add_newdocs.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py index 5ff12a2c7..33e062803 100644 --- a/numpy/core/_add_newdocs.py +++ b/numpy/core/_add_newdocs.py @@ -4122,7 +4122,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('var', add_newdoc('numpy.core.multiarray', 'ndarray', ('view', """ - a.view(dtype=None, type=None) + a.view([dtype][, type]) New view of array with the same data. @@ -4160,11 +4160,6 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('view', defined as a slice or transpose, etc., the view may give different results. - Passing None explicitly for ``dtype`` is different from omitting the - parameter, since the former invokes ``dtype(None)`` which is an alias for - ``dtype('float_')``. Similarly, explicitly passing None for ``type`` - is an error. - Examples -------- |