Code /

Django

Reading

Outdoors

Games

Hobbies

LEGO

Food

Code

Events

Nook

sidebar

Django

Django

History

History for shell-plus, same as python:

  • Python 2
    import readline
    for i in range(readline.get_current_history_length()):
        print readline.get_history_item(i + 1)
    
  • Python 3
    import readline
    for i in range(readline.get_current_history_length()):
        print (readline.get_history_item(i + 1))
    
Recent Changes (All) | Edit SideBar Page last modified on October 03, 2019, at 07:23 PM Edit Page | Page History