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 committed Oct 5, 2022
1 parent a1fd7b6 commit b280eee
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions numpy/lib/npyio.py
Original file line number Diff line number Diff line change
Expand Up @@ -1085,9 +1085,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
Converter functions to customize value parsing. If `converters` is
callable, the function is applied to all columns, else it must be a
Expand Down

0 comments on commit b280eee

Please sign in to comment.