diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-10-04 15:05:37 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-10-04 15:05:37 -0600 |
commit | cad4c90de5292023358e31e82378815720c99c47 (patch) | |
tree | 27a07b4018a433f40117e814f3cbac2c53337d24 /numpy/lib/npyio.py | |
parent | ae2d0bb7c2d227e893195cc3e52477567781e2db (diff) | |
download | numpy-cad4c90de5292023358e31e82378815720c99c47.tar.gz |
DOC: Cleanup genfromtxt documentation a bit.
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 9f90039eb..640f4fa32 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1271,12 +1271,11 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None, Parameters ---------- - fname : file, str, list of str - File, filename, list, or generator to read. If the filename extension is - `.gz` or `.bz2`, the file is first decompressed. Note that - generators must return byte strings in Python 3k. - The strings in a list or strings produced by a generator are treated - as lines. + fname : file, str, list of str, generator + File, filename, list, or generator to read. If the filename + extension is `.gz` or `.bz2`, the file is first decompressed. Mote + that generators must return byte strings in Python 3k. The strings + in a list or produced by a generator are treated as lines. dtype : dtype, optional Data type of the resulting array. If None, the dtypes will be determined by the contents of each @@ -1457,8 +1456,8 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None, fhd = iter(fname) except TypeError: raise TypeError( - "fname must be a string, filehandle, list of strings, or generator. " - "(got %s instead)" % type(fname)) + "fname must be a string, filehandle, list of strings, " + "or generator. Got %s instead." % type(fname)) split_line = LineSplitter(delimiter=delimiter, comments=comments, autostrip=autostrip)._handyman |