parameters: (self, line)
docstring: history
  
          Show previously executed commands.
docstring_summary: history
docstring_tokens: history
function: def do_history(self, line):
          """
          history
  
          Show previously executed commands.
          """
  
          try:
              import readline
              h = readline.get_current_history_length()
              for n in range(1,h+1):
                  print(readline.get_history_item(n))
          except ImportError:
              pass
function_tokens: def do_history ( self , line ) : try : import readline h = readline . get_current_history_length ( ) for n in range ( 1 , h + 1 ) : print ( readline . get_history_item ( n ) ) except ImportError : pass