Writing things like the bound variables with current values and names, already entered code of defined functions, imports at the beginning, etc., to a .py file? (on win32, just for the lack of built in readline).
EDIT Just the standard installation/package, without things like iPython. :)
I can make python save a history file on clean exits, but I'm interested if there is any way to make the interpreter dump some code it already has. In a human readable format.
It's not a problem at all if it's not exactly the same I entered while the functionality and the visible names are the same.
Reason just curious.
Useless reasons: it would come handy when you hastily help out a friend at an unknown terminal while [s]he's learning the language, just to realize that there is no convenient way to save the work, while putting it into a file and running that arguably would have made things harder to gasp for the comrade. I'm aware there are things like playerpiano, but you see, it's a random terminal where you have no admin rights and there is not internet. :) Happened several times at school, by the way. Please note that the main reason is being curious.