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
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