[issue17225] JSON decoder reports wrong column number on first line

2013-02-21 Thread Ferdinand Beyer
Ferdinand Beyer added the comment: Line and column number are included in the formatted error message ("raise ValueError(errormsg(...))"). They are currently not accessible separately as exception arguments. -- ___ Python trac

[issue17225] JSON decoder reports wrong column number on first line

2013-02-18 Thread Ferdinand Beyer
New submission from Ferdinand Beyer: The linecol() function in json/decoder.py computes the line and column numbers for a byte offset in a string. Both numbers are expected to start with 1 (as in text editors). If the position is in the first line, the returned column is off by one (or