From 406ccc9c574555ebdbda3de6abfc44a833f523e7 Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Sun, 6 May 2018 11:15:49 -0700 Subject: DOC: Add explanation for comments=None in loadtxt. --- numpy/lib/npyio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 97f50b5d8..76cc07ff1 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -791,8 +791,8 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None, the data-type. comments : str or sequence of str, optional The characters or list of characters used to indicate the start of a - comment. For backwards compatibility, byte strings will be decoded as - 'latin1'. The default is '#'. + comment. None implies no comments. For backwards compatibility, byte + strings will be decoded as 'latin1'. The default is '#'. delimiter : str, optional The string used to separate values. For backwards compatibility, byte strings will be decoded as 'latin1'. The default is whitespace. -- cgit v1.2.1