diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-07-01 15:40:10 +0100 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-07-01 15:40:10 +0100 |
commit | 87c1b1f56af5fe2796cb78dd9bc76e92cb2e1f93 (patch) | |
tree | f4d3b02c8a02181234677f07f8c67db0ca11dc67 /numpy/lib/recfunctions.py | |
parent | b3d9ec77d4448f424449a9e9643df2d3cfd7701b (diff) | |
download | numpy-87c1b1f56af5fe2796cb78dd9bc76e92cb2e1f93.tar.gz |
BUG: flatten_descr returns string not dtype for scalar dtype
Diffstat (limited to 'numpy/lib/recfunctions.py')
-rw-r--r-- | numpy/lib/recfunctions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/recfunctions.py b/numpy/lib/recfunctions.py index 71672eae3..0a1a259d8 100644 --- a/numpy/lib/recfunctions.py +++ b/numpy/lib/recfunctions.py @@ -182,7 +182,7 @@ def flatten_descr(ndtype): """ names = ndtype.names if names is None: - return ndtype.descr + return (('', ndtype),) else: descr = [] for field in names: |