This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients terry.reedy, veky
Date 2019-03-20.03:12:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553051563.98.0.529061210309.issue36376@roundup.psfhosted.org>
In-reply-to
Content
IDLE should display the same error message and mark the error at the same spot that Python tells it too, which is to say, what is display and where it is marked when running Python in a console/terminal.  The only difference is that IDLE uses red background highlight instead of a caret.  For 3.7.2, IDLE displays the same 'invalid syntax' message but mis-marks the position as you say. 

The latest 3.7.3rc1 and 3.8.0a2 releases on Windows, without and with IDLE, with code in file or entered interactively, correctly display "SyntaxError: unmatched ')'", with an improved message, and mark the stray ')'.  The only new IDLE patch that might have fixed this (accidentally, as a side effect) was #34055.  Or some detail of the info IDLE gets might have changed.

If you find another example that fails with or without IDLE, in file or at prompt, please give all details and copy and paste the traceback from both python and IDLE.

I make of note of this as a test case for a future error highlight test.
History
Date User Action Args
2019-03-20 03:12:44terry.reedysetrecipients: + terry.reedy, veky
2019-03-20 03:12:43terry.reedysetmessageid: <1553051563.98.0.529061210309.issue36376@roundup.psfhosted.org>
2019-03-20 03:12:43terry.reedylinkissue36376 messages
2019-03-20 03:12:43terry.reedycreate