Python 3.13.0b1 REPL does not deduplicate history entries
Open
Nobody has claimed this yet.
stdlib
topic-repl
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
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
1after the second ↑ press. I consider this the natural behavior. - On Python 3.13, I get
1only after the 7nd ↑ press. I consider this weird.
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
- gh-119276
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the arrow-up history behavior in the Python 3.12 and 3.13 REPL using the repeated-input example. Compare the history navigation behavior, review linked PR gh-119276 for existing work, and consider the issue done when duplicate entries are skipped as in Python 3.12.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100