summaryrefslogtreecommitdiff
path: root/numpy/doc/structured_arrays.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-01-26 20:51:58 -0500
committerCharles Harris <charlesr.harris@gmail.com>2015-01-26 20:51:58 -0500
commitfbcc24fa7cedd2bbf25506a0683f89d13f2d4846 (patch)
tree952281370d954ac2299802cbd531ed31fde674e8 /numpy/doc/structured_arrays.py
parenta786c82c312eb7baf8c2879180eb1345f79d8c89 (diff)
parent3cd9e7339c37880cff0a2f381e881e0e612c4948 (diff)
downloadnumpy-fbcc24fa7cedd2bbf25506a0683f89d13f2d4846.tar.gz
Merge pull request #5505 from ahaldane/recarray_returntype
BUG: Fix recarray getattr and getindex return types
Diffstat (limited to 'numpy/doc/structured_arrays.py')
-rw-r--r--numpy/doc/structured_arrays.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/doc/structured_arrays.py b/numpy/doc/structured_arrays.py
index f2329827e..d8b4fc719 100644
--- a/numpy/doc/structured_arrays.py
+++ b/numpy/doc/structured_arrays.py
@@ -268,6 +268,10 @@ array if the field has a structured type but as a plain ndarray otherwise. ::
>>> type(recordarr.bar)
<class 'numpy.core.records.recarray'>
+Note that if a field has the same name as an ndarray attribute, the ndarray
+attribute takes precedence. Such fields will be inaccessible by attribute but
+may still be accessed by index.
+
Partial Attribute Access
------------------------