You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Windows] New REPL does not preserve history between sessions #125154
I have downloaded Python 3.13.0, Windows 64 bit version from python.org. I have done nothing to customise it.
I start Python. type "12" at the REPL, and press enter. The value 12 is displayed. I hit Ctrl-Z to exit (same happens if I type "exit"). I restart Python and hit the up arrow key. It does not retrieve the "12" from my previous session.
That's something that should probably be publicised much better, then, as it's a surprising and (in my case at least) frustrating limitation compared to the old OS-provided REPL. I'm not sure it's bad enough that I'd switch off the new REPL, but it will take some getting used to.
changed the title [-]New REPL does not preserve history between sessions[/-][+][Windows] New REPL does not preserve history between sessions[/+]on Oct 9, 2024
In previous versions of python3, installing pyreadline3 added readline support to Windows, which enabled REPL history between sessions. This does not work in python 3.13.
Activity
hroncok commentedon Oct 8, 2024
I was unable to reproduce this problem on Fedora. This might be Windows-specific.
devdanzin commentedon Oct 8, 2024
This is a (supposedly) known limitation, as history support in Windows hasn't been added so far. I took a stab at it in #122274.
pfmoore commentedon Oct 8, 2024
:-(
That's something that should probably be publicised much better, then, as it's a surprising and (in my case at least) frustrating limitation compared to the old OS-provided REPL. I'm not sure it's bad enough that I'd switch off the new REPL, but it will take some getting used to.
skirpichev commentedon Oct 9, 2024
Sounds like #121245 reappears. Does this build has readline support?
[-]New REPL does not preserve history between sessions[/-][+][Windows] New REPL does not preserve history between sessions[/+]vstinner commentedon Oct 9, 2024
Windows has no readline module.
jmw182 commentedon Oct 23, 2024
In previous versions of python3, installing pyreadline3 added readline support to Windows, which enabled REPL history between sessions. This does not work in python 3.13.
vstinner commentedon Nov 28, 2024
This issue is a duplicate of #122273 which was fixed by 3c7a90a.