Dump interpreter history?
aahz at pythoncraft.com
Tue Apr 12 12:12:57 EDT 2011
In article <mailman.222.1302543313.9059.python-list at python.org>,
Terry Reedy <tjreedy at udel.edu> wrote:
>On 4/11/2011 11:54 AM, Aahz wrote:
>> In article<mailman.1266.1301087057.1189.python-list at python.org>,
>> Ken D'Ambrosio<ken at jots.org> wrote:
>>> Hey, all. A co-worker asked me a question, and I've got no idea how (or
>>> if) it can be done. Bottom line: he'd like to save off the text from an
>>> interpreter session, his thinking being that you've already tried to get
>>> what you want, and now you just need to gussy it up in an editor.
>> I've never used it myself, but IIRC ipython does what you want very
>Idle will save the contents of the shell window, including opening slash
>line and prompts.
The problem is that normally you *don't* want the prompts. I believe
IPython handles that.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"At Resolver we've found it useful to short-circuit any doubt and just
refer to comments in code as 'lies'. :-)"
--Michael Foord paraphrases Christian Muirhead on python-dev, 2009-03-22
More information about the Python-list