diff options
| author | Andras Deak <deak.andris@gmail.com> | 2020-01-06 02:50:38 +0100 |
|---|---|---|
| committer | Andras Deak <deak.andris@gmail.com> | 2020-01-06 02:50:38 +0100 |
| commit | 9132123e9d49e6fd68b164b82e01566041d5f5e9 (patch) | |
| tree | 2b1c4e579896db9d735c0c326b20372db7643aa4 | |
| parent | b3c37ce09f48a808b80d65937d1fbe3335765362 (diff) | |
| download | numpy-9132123e9d49e6fd68b164b82e01566041d5f5e9.tar.gz | |
DOC: add sphinx note about passing dtype=None to view
| -rw-r--r-- | numpy/core/_add_newdocs.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py index 33e062803..5c16827ed 100644 --- a/numpy/core/_add_newdocs.py +++ b/numpy/core/_add_newdocs.py @@ -4126,6 +4126,11 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('view', New view of array with the same data. + .. note:: + Passing None for ``dtype`` is different from omitting the parameter, + since the former invokes ``dtype(None)`` which is an alias for + ``dtype('float_')``. + Parameters ---------- dtype : data-type or ndarray sub-class, optional |
