You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDLE: Display full syntax error diagnostics in the Shell #159190
Thank you for your interest in IDLE. However, I do not want syntax errors in the editor displayed in Shell.
This omits useful diagnostic information already provided by Python, including the filename, line number, offending source code, and error position.
The filename is at the top of the editor window. The line number is available on the left if one turns on the line number sidebar. But it is not really needed. The offending code and position are marked. (Marking a range when available, Https://github.com/python/cpython/issues/91312, is a separate issue.) The full error message is in the box. There is nothing missing.
Currently, one dismisses the modal box with Enter, Esc, or [OK] click. I have considered making it non-modal with the cursor and focus left in the text, allowing users to immediately enter corrections. The box should then disappear on the first key action or maybe the first Enter. I have also considered putting the message below in the status bar. There is no Python standard for editors and IDEs.
I actually want to make Shell more like the editor and not disable editing and error correcting upon a syntax error. The REPL is limited by assuming that it might be running on century-old mechanical teleprinters. (It only added color a couple of years ago.)
Activity
terryjreedy commentedon Oct 11, 2026
I regard this as a change in the wrong direction, but have other duties now; will explain later.
terryjreedy commentedon Oct 17, 2026
Thank you for your interest in IDLE. However, I do not want syntax errors in the editor displayed in Shell.
The filename is at the top of the editor window. The line number is available on the left if one turns on the line number sidebar. But it is not really needed. The offending code and position are marked. (Marking a range when available, Https://github.com/python/cpython/issues/91312, is a separate issue.) The full error message is in the box. There is nothing missing.
Currently, one dismisses the modal box with Enter, Esc, or [OK] click. I have considered making it non-modal with the cursor and focus left in the text, allowing users to immediately enter corrections. The box should then disappear on the first key action or maybe the first Enter. I have also considered putting the message below in the status bar. There is no Python standard for editors and IDEs.
I actually want to make Shell more like the editor and not disable editing and error correcting upon a syntax error. The REPL is limited by assuming that it might be running on century-old mechanical teleprinters. (It only added color a couple of years ago.)