How to make command history persistent?

Discussion in 'Python' started by vbfoobar@gmail.com, Oct 18, 2005.

  1. Guest

    Hello,

    My question is:
    Is there an easy mean to make Python "command history"
    persistent across interpreter invokations?

    PS:
    In the case the question above is not clear, I rephrase
    it below verbosely...
    When I work from the Python prompt, I enjoy features
    like command line editing and searching/recalling
    previous lines of code from the history.
    (This is similar to working from a Unix shell prompt.)
    But I would like, in addition, be able to keep the history
    from one session to another (when I quit Python, the history
    is lost, but I would like to retrieve it each time In
    invoke again Python interactively).

    Thanks
    , Oct 18, 2005
    #1
    1. Advertising

  2. Guest

    , Oct 18, 2005
    #2
    1. Advertising

  3. Guest

    Great! The indicated "history save" works!
    Thanks
    , Oct 18, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christoph Becker-Freyseng

    dumping command-history in python interactive mode

    Christoph Becker-Freyseng, Jul 17, 2003, in forum: Python
    Replies:
    3
    Views:
    383
    Pedro Werneck
    Jul 18, 2003
  2. gk
    Replies:
    7
    Views:
    943
    Tom Anderson
    Oct 12, 2010
  3. Sam Stephenson
    Replies:
    1
    Views:
    211
    Andrew Walrond
    Jun 18, 2005
  4. Replies:
    2
    Views:
    264
    nutso fasst
    Oct 17, 2006
  5. Niall
    Replies:
    3
    Views:
    148
    Niall
    Dec 6, 2006
Loading...

Share This Page