Skip to content

[Windows] New REPL does not preserve history between sessions #125154

Closed

Description

@pfmoore

Bug report

Bug description:

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.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on Oct 8, 2024
  2. hroncok commented on Oct 8, 2024

    @hroncok
    Contributor

    I was unable to reproduce this problem on Fedora. This might be Windows-specific.

  3. devdanzin commented on Oct 8, 2024

    @devdanzin
    Member

    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.

  4. pfmoore commented on Oct 8, 2024

    @pfmoore
    MemberAuthor

    :-(

    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.

  5. skirpichev commented on Oct 9, 2024

    @skirpichev
    Member

    Sounds like #121245 reappears. Does this build has readline support?

  6. changed the title [-]New REPL does not preserve history between sessions[/-] [+][Windows] New REPL does not preserve history between sessions[/+] on Oct 9, 2024
  7. vstinner commented on Oct 9, 2024

    @vstinner
    Member

    Sounds like #121245 reappears. Does this build has readline support?

    Windows has no readline module.

  8. jmw182 commented on Oct 23, 2024

    @jmw182

    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.

  9. vstinner commented on Nov 28, 2024

    @vstinner
    Member

    This issue is a duplicate of #122273 which was fixed by 3c7a90a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowstopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions