This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients bytecookie, steven.daprano
Date 2020-08-17.10:26:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597659987.31.0.580127898656.issue41563@roundup.psfhosted.org>
In-reply-to
Content
> My history file is only 500 lines.

*slaps forehead*

Of course it is, I'm running a customer history hook that has a limit of 500 lines in the history file.

It looks to me that by default the history feature is set to unlimited lines, so I guess that implies that this isn't a bug and it is your responsibility to set a maximum history length.

You can put these two lines in your Python startup file:

    import readline
    readline.set_history_length(1000)  # or any number you like



Personally, I don't think that having a default setting that allows the history file to grow to 130MB is a good idea.
History
Date User Action Args
2020-08-17 10:26:27steven.dapranosetrecipients: + steven.daprano, bytecookie
2020-08-17 10:26:27steven.dapranosetmessageid: <1597659987.31.0.580127898656.issue41563@roundup.psfhosted.org>
2020-08-17 10:26:27steven.dapranolinkissue41563 messages
2020-08-17 10:26:27steven.dapranocreate