Print all commands that were entered in interactive mode in Python

import readline
readline.write_history_file( "log.py")

No comments:

Post a Comment