summaryrefslogtreecommitdiff
path: root/numpy/doc/structured_arrays.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-11-12 22:14:53 -0800
committerEric Wieser <wieser.eric@gmail.com>2018-11-13 00:35:00 -0800
commitfc4b477909293b42ce75fb7bce7a69ad255183ec (patch)
treebf38c6b9bd073b2012085d8393a7dc176d0177ac /numpy/doc/structured_arrays.py
parentcd39348e8593dc2b41e2516fbdd8a69b0f0bda6e (diff)
downloadnumpy-fc4b477909293b42ce75fb7bce7a69ad255183ec.tar.gz
MAINT: Improve error message for legal but unsupported PEP3118 types
Relates to #12369 Traceback is now: ``` In [1]: from array import array ...: import numpy as np ...: ...: buf = array('u', ['q', 'w', 'e', 'r', 't']) ...: view = memoryview(buf) ...: In [2]: np.array(view) NotImplementedError: Unsupported PEP 3118 data type 'u' (UCS-2 strings) The above exception was the direct cause of the following exception: ValueError: 'u' is not a valid PEP 3118 buffer format string ```
Diffstat (limited to 'numpy/doc/structured_arrays.py')
0 files changed, 0 insertions, 0 deletions