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.

classification
Title: IDLE interactive window doesn't display unsaved-indicator
Type: behavior Stage: patch review
Components: IDLE Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Saimadhav.Heblikar, rhettinger, terry.reedy
Priority: normal Keywords: patch

Created on 2014-07-08 04:42 by rhettinger, last changed 2022-04-11 14:58 by admin.

Pull Requests
URL Status Linked Edit
PR 3701 open cheryl.sabella, 2017-09-22 18:32
Messages (5)
msg222542 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2014-07-08 04:42
* Open a Python Shell
* Save as session_log.txt
* Type a line of code
* Notice that the asterisk for "unsaved" does not appear
msg222792 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-07-11 20:31
In installed 3.4.1 on Win 7, I *do* get the unsaved * back when typing. It disappears again when I hit return. So on this system, the meaning seems to be 'unsubmitted code'.

Saving in the middle of a line inserts '\n' before saving (but does not submit for execution) and also removes *.
msg228242 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-10-02 17:27
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.
msg248159 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2015-08-06 22:59
A follow-on issue would be to have an option to prompt to save (as with editor windows) or autosave when closing the shell.  A default path might be .idlerc/shellsave.txt.
msg302501 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-09-19 05:16
The 'follow-on' issue is #23666.
History
Date User Action Args
2022-04-11 14:58:05adminsetgithub: 66136
2019-09-19 18:46:46terry.reedysetversions: + Python 3.9, - Python 2.7, Python 3.4, Python 3.5, Python 3.6
2017-09-22 18:32:43cheryl.sabellasetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request3685
2017-09-19 05:16:17terry.reedysetmessages: + msg302501
2015-08-06 22:59:04terry.reedysetmessages: + msg248159
versions: + Python 3.6
2014-10-02 17:27:49terry.reedysetmessages: + msg228242
stage: needs patch
2014-07-11 20:31:32terry.reedysetnosy: + terry.reedy
messages: + msg222792
2014-07-08 11:57:31Saimadhav.Heblikarsetnosy: + Saimadhav.Heblikar
2014-07-08 04:42:03rhettingercreate