In article <[email protected]>, Terry Reedy <[email protected]> wrote: >On 4/11/2011 11:54 AM, Aahz wrote: >> In article<[email protected]>, >> Ken D'Ambrosio<[email protected]> 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 >> nicely. > >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 ([email protected]) <*> 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 -- http://mail.python.org/mailman/listinfo/python-list
