import readline readline.write_history_file( “log.py”)
Home » PostsPrint all commands that were entered in interactive mode in PythonOctober 22, 2013 · SergeMTable of Contentsimport readline readline.write_history_file( “log.py”)