Message375539
> 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. |
|
Date |
User |
Action |
Args |
2020-08-17 10:26:27 | steven.daprano | set | recipients:
+ steven.daprano, bytecookie |
2020-08-17 10:26:27 | steven.daprano | set | messageid: <1597659987.31.0.580127898656.issue41563@roundup.psfhosted.org> |
2020-08-17 10:26:27 | steven.daprano | link | issue41563 messages |
2020-08-17 10:26:27 | steven.daprano | create | |
|