Error » cursor
cursor → [line, column]
Returns a cursor position as a list of the form [line, column], indicating where a cursor should be placed if an application wants to offer the user a way to move the cursor straight to the error location.
python>>> try:
... # ...
... except Error as e:
... return e.cursor
[3, 14]
Return value
A list, where [0] is the line number, and [1] is the column number.