[Numpy-discussion] loadtxt bug?
Alan G Isaac
Thu Nov 22 22:14:07 CST 2007
In numpy.core.numeric.py you will find loadtxt, which uses
line = line[:line.find(comments)].strip()
I believe there is a bug here (when a line has no comment).
>>> line = "12345"
>>> comments = "#"
So I propose this should be::
line = line[:line.index(comments)].strip()
line = line.strip()
Am I right?
More information about the Numpy-discussion