History Revision 653235323031 (Tue Aug 31 2010 at 22:03) - Diff Link to this snippet: https://friendpaste.com/6Q6B7IcsQeAs3RKVJbsgHG Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 12345678histfile = os.path.join(os.environ["HOME"], ".python_history")try: readline.read_history_file(histfile)except IOError, err: print errimport atexitatexit.register(readline.write_history_file, histfile)