New REPL - readline module does not save history with write_history_file #130938
Labels
stdlib
Python modules in the Lib dir
topic-repl
Related to the interactive shell
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
When using new REPL in Python 13, the readline module does not write history to the files correctly.
I have checked this issue on both my host system, as well as python:alpine container from docker.
Using PYTHON_BASIC_REPL=1 no longer causes this issue.
Expected
hist.txt file contains the saved commands.
Actual
hist.txt file is empty. Note that .python_history file does save and load history correctly.
CPython versions tested on:
3.13
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: