Error » selection

selection → [[line, column], [line, column]]

Returns a selection as a list of the form [[line, column], [line, column]], indicating a text range to select if an application wants to offer the user a way to get a selection for the error in the input.

python>>> try:
...   # ...
... except Error as e:
...   return e.selection
[[3, 14], [3, 23]]

Return value

A list, where [0] is the begin of the selection and [1] is the end,and both begin and end are each again a list, where [0] is theline number, and [1] is the column number.