In article <mailman.222.1302543313.9059.python-l...@python.org>, Terry Reedy <tjre...@udel.edu> wrote: >On 4/11/2011 11:54 AM, Aahz wrote: >> In article<mailman.1266.1301087057.1189.python-l...@python.org>, >> Ken D'Ambrosio<k...@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 >> 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 (a...@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 -- http://mail.python.org/mailman/listinfo/python-list