Dump interpreter history?

Daniel Mahoney catdude at gmail.com
Fri Mar 25 17:40:00 EDT 2011


On Fri, 25 Mar 2011 17:03:55 -0400, Ken D'Ambrosio 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.
> 
> Can this be done?
> 
> Thanks!
> 
> -Ken

import readline
readline.write_history_file([filename])




More information about the Python-list mailing list