python / python/cpython

Python 3.13 REPL have issues when typing/deleting single line, that goes wrapped on multiple lines

Open
#126,614 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic-repl type-bug
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Bug report

Bug description:

When I tested some things in REPL that running in Windows Terminal on Windows 10 I find out that it have issues when I type or delete characters in first line that's being wrapped on 2nd line.

A better showcase will be this video:

https://github.com/user-attachments/assets/3c106067-fe42-48e9-8163-c0066dfb3c16

Here you can see some line that I'm working with, at some point I was needed to go back and delete characters in first line, here I deleted 3 characters: int with backspace, but what it did is delete whole words and print line with overlapping on existing one, making it unreadable mess. But the actual code is safe, only visual bug showing it wrong.

Then for showcase I added int back and it did in the same way with an error.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the Python 3.13 REPL on Windows 10 using Windows Terminal: enter a line that wraps, then type and delete characters in its first line. Compare the displayed terminal output with the actual input behavior; done means wrapped-line editing no longer produces overlapping or unreadable rendering.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.