summaryrefslogtreecommitdiff
path: root/numpy/doc/structured_arrays.py
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-05-13 08:45:05 +0300
committerGitHub <noreply@github.com>2020-05-13 08:45:05 +0300
commit0a222b87ab733955f34719a79c0dcb44a830a31f (patch)
tree2839fde947210cbdc7fb9f8c0f11d2bf4eeb9b29 /numpy/doc/structured_arrays.py
parentbeb031d64b42f4643d1ba5186c091fb1328ac8c9 (diff)
parent9cc3af7abf8728534939d37dcda07c66d68381a3 (diff)
downloadnumpy-0a222b87ab733955f34719a79c0dcb44a830a31f.tar.gz
Merge pull request #16133 from seberg/maint-cast-error
MAINT: Unify casting error creation (outside the iterator)
Diffstat (limited to 'numpy/doc/structured_arrays.py')
-rw-r--r--numpy/doc/structured_arrays.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/doc/structured_arrays.py b/numpy/doc/structured_arrays.py
index 72990cf89..359d4f7f4 100644
--- a/numpy/doc/structured_arrays.py
+++ b/numpy/doc/structured_arrays.py
@@ -341,7 +341,7 @@ structured datatype has just a single field::
>>> nostruct[:] = twofield
Traceback (most recent call last):
...
- TypeError: Cannot cast scalar from dtype([('A', '<i4'), ('B', '<i4')]) to dtype('int32') according to the rule 'unsafe'
+ TypeError: Cannot cast array data from dtype([('A', '<i4'), ('B', '<i4')]) to dtype('int32') according to the rule 'unsafe'
Assignment from other Structured Arrays
```````````````````````````````````````