Skip to content

Commit

Permalink
DOC: Use versionchanged and add in note about newline chars.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar authored and charris committed Oct 6, 2022
1 parent 2340783 commit 2812cc4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions numpy/lib/npyio.py
Expand Up @@ -1087,9 +1087,13 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None,
comment. None implies no comments. For backwards compatibility, byte
strings will be decoded as 'latin1'. The default is '#'.
delimiter : str, optional
The character used to separate the values. Only single character
delimiters are supported. For backwards compatibility, byte
strings will be decoded as 'latin1'. The default is whitespace.
The character used to separate the values. For backwards compatibility,
byte strings will be decoded as 'latin1'. The default is whitespace.
.. versionchanged:: 1.23.0
Only single character delimiters are supported. Newline characters
cannot be used as the delimiter.
converters : dict or callable, optional
A function to parse all columns strings into the desired value, or
a dictionary mapping column number to a parser function.
Expand Down

0 comments on commit 2812cc4

Please sign in to comment.