Terry J. Reedy <tjre...@udel.edu> added the comment:

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.

----------
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36376>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to