Clearing history from readline module

Bruce Edge bedge at troikanetworks.com
Tue Mar 6 13:52:01 EST 2001


I have two contexts from my interp, regular python CLI and my cmd based
interp.
I want to maintain separate command line histories for each. I can do a
readline.read_history_file, but that appends the current history. 
How can I reset the readline history data?
I tried reload(readline) but that has no effect.

TIA, Bruce.



More information about the Python-list mailing list