Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how can I edit the history in python shell

import readline; print('
'.join([str(readline.get_history_item(i + 1)) for i in range(readline.get_current_history_length())]))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #I #edit #history #python #shell
ADD COMMENT
Topic
Name
1+8 =