how can I edit the history in python shell

31

import readline; print('\n'.join([str(readline.get_history_item(i + 1)) for i in range(readline.get_current_history_length())]))

Comments

Submit
0 Comments