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.
>>> try: ... # ... ... except Error as e: ... return e.cursor [3, 14]
A list, where  is the line number, and  is the column number.