IDLE Restoration

Chris Angelico rosuav at gmail.com
Fri May 8 11:35:38 EDT 2015


On Sat, May 9, 2015 at 1:26 AM,  <subhabrata.banerji at gmail.com> wrote:
> In many applications there is a facility to restore its previous sessions, especially if they close accidentally.
>
> Does IDLE have any such facility?
> If it is there, how may I use it?
>
> If someone may kindly suggest it.

Generally the notion of session restore is a fairly limited one; for
instance, a text editor might keep track of which files were opened
(and maybe cursor positions), but not the actual contents. Web
browsers tend to do a bit more than that (a good thing, since they
crash more often than text editors do), but still generally depend on
being able to retrieve most of the content from the origin server(s)
on restart.

Are you hoping to have the IDLE editor restore the fact that you had
files X, Y, and Z open, or are you hoping to have the interactive
interpreter retain your entire history of commands and their results?
The former is reasonably plausible (and may well be possible already -
Terry?), but the latter is quite impractical.

ChrisA



More information about the Python-list mailing list