diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-04-30 19:50:21 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-05-02 08:27:35 -0500 |
commit | ffe76ac8df65c8e7831df9924a782276e060f3e6 (patch) | |
tree | 3d46812a083fd9d05e5da49e56dbe913d0e26ca2 /numpy/doc/structured_arrays.py | |
parent | 7e3fd81c039b0e22715c4e6eb63439bdf5a620bf (diff) | |
download | numpy-ffe76ac8df65c8e7831df9924a782276e060f3e6.tar.gz |
MAINT: Unify casting error creation (outside the iterator)
Diffstat (limited to 'numpy/doc/structured_arrays.py')
-rw-r--r-- | numpy/doc/structured_arrays.py | 2 |
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 ``````````````````````````````````````` |