diff options
author | Ryan Soklaski <ryan.soklaski@gmail.com> | 2020-08-28 18:52:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 18:52:37 -0400 |
commit | a6c974489b753437dc5929326d4c320d39f26c08 (patch) | |
tree | 03e4ec832b60a6ab9bc11f835d67f9647b0cb9d9 /numpy/doc/subclassing.py | |
parent | 53ea3a9dd802c13dc6930504d4a896bba8287cb0 (diff) | |
download | numpy-a6c974489b753437dc5929326d4c320d39f26c08.tar.gz |
DOC: Correct error in description of ndarray.base
Found in subsection of Subclassing ndarray in python: Extra gotchas - custom __del__ methods and ndarray.base
Diffstat (limited to 'numpy/doc/subclassing.py')
-rw-r--r-- | numpy/doc/subclassing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/doc/subclassing.py b/numpy/doc/subclassing.py index 7dc10e1c8..d6a4a765b 100644 --- a/numpy/doc/subclassing.py +++ b/numpy/doc/subclassing.py @@ -685,8 +685,8 @@ True True >>> # Take a view of a view >>> v2 = v1[1:] ->>> # base points to the view it derived from ->>> v2.base is v1 +>>> # base points to the original array that it was derived from +>>> v2.base is arr True In general, if the array owns its own memory, as for ``arr`` in this |