Skip to content

Python 3.13.0b1 REPL does not deduplicate history entries #119033

@hroncok

Description

@hroncok

Bug report

Bug description:

Consider this:

>>> 1
1
>>> 2
2
>>> 2
2
>>> 2
2
>>> 2
2
>>> 2
2
>>> 2
2
>>>

Now press the arrow up (). 2 appears. Then, press it again...

  • On Python 3.12, I get 1 after the second press. I consider this the natural behavior.
  • On Python 3.13, I get 1 only after the 7nd press. I consider this weird.

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-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