6Q6B7IcsQeAs3RKVJbsgHG changeset

Changeset653235323031 (b)
ParentNone (a)
ab
0+histfile = os.path.join(os.environ["HOME"], ".python_history")
0+try:
0+    readline.read_history_file(histfile)
0+except IOError, err:
0+    print err
0+
0+import atexit
0+atexit.register(readline.write_history_file, histfile)
...
1
2
3
4
5
6
7
8
9
10
11
--- Revision None
+++ Revision 653235323031
@@ -0,0 +1,8 @@
+histfile = os.path.join(os.environ["HOME"], ".python_history")
+try:
+ readline.read_history_file(histfile)
+except IOError, err:
+ print err
+
+import atexit
+atexit.register(readline.write_history_file, histfile)