Summary
https://docs.python.org/3/library/readline.html
As per this issue (#118840), the python REPL after version 3.13 no longer supports readline. Readline can still be used if PYTHON_BASIC_REPL is set. The documentation should be changed to reflect this, it is rather difficult to understand why the example pythonrc.py on the page doesn't work otherwise.
Linked PRs