how to save python interpreter's command history

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sakcee

    #1

    how to save python interpreter's command history

    this has been a problem for me for some time.

    I want to save the interpretters command history to a file, there is a
    history file in my user directory .pyhistory but it saves only like 500
    or so

    how can I make it save all the commands and not delete it, any other
    suggestions that people use is welcome


    thanks

  • Patrick Bothe

    #2
    Re: how to save python interpreter's command history

    If you're using an operating system supporting the readline utility
    try:

    The official home of the Python Programming Language


    I am using a slightly modified version of the given example.
    The last time I checked the size of my history file it had 4k+ entries.

    Regards,
    Patrick

    --
    2 does not equal 3. Even for large values of 2.

    Comment

    Working...