diff options
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index aeccc2a24..34bbd1469 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1269,7 +1269,7 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None, elif (names is not None) and (len(names) > nbcols): names = [names[_] for _ in usecols] elif (names is not None) and (dtype is not None): - names = dtype.names + names = list(dtype.names) # Process the missing values ............................... |