[issue38598] IDLE: Disable F5, etc, in Shell, even after saving

Terry J. Reedy report at bugs.python.org
Sat Oct 26 17:03:56 EDT 2019


New submission from Terry J. Reedy <tjreedy at udel.edu>:

When the Shell is active, the Run menu is disabled, but its shortcuts are not.  These are F5 Run Module, Shift-F5 Run ... Custom, and Alt-X Check Module.  If Shell has not been saved, the shortcuts do nothing, but once Shell has been saved, they try to compile the entire shell session.

The result is that the '3' in 'Python 3.8 ...' on the first line is highlighted as an error and the SyntaxError box pops up.  When the box is dismissed, the cursor is placed after the '3'.

Instead of calling compile, IDLE should beep and continue.

----------
assignee: terry.reedy
components: IDLE
messages: 355432
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE: Disable F5, etc, in Shell, even after saving
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38598>
_______________________________________


More information about the Python-bugs-list mailing list