[issue21937] IDLE interactive window doesn't display unsaved-indicator

Terry J. Reedy report at bugs.python.org
Thu Oct 2 19:27:49 CEST 2014


Terry J. Reedy added the comment:

Further experiments reveal that the **s mean 'the undo buffer is not empty'.  Enter
>>> import time; time.sleep(2)
and ** do not disappear until sleep finishes and a new prompt is displayed. Enter a character at the prompt and ** appear. Delete the char and ** stay. Hit ^z (undo) twice and ** disappear. For the final proof, recall the sleep statement and increase the sleep time to at least 5. Hit enter and ^Z enough times during the sleep and the statement and ** both disappear before sleep ends and the new prompt displayded.  The behavior is the same after saving Shell, which adds the name of the file to the title.

Using ** on the title bar to indicate the status of the undo buffer is undocumented as far as I know. I would agree that this is surprising, not very useful, and that having ** mean 'unsaved' for Shell as well as for other windows might be more useful.

----------
stage:  -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21937>
_______________________________________


More information about the Python-bugs-list mailing list