python / python/cpython

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

未關閉
#126,614 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

topic-repl type-bug
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

在 Windows 10 上使用 Windows Terminal,透過 Python 3.13 REPL 重現此問題:輸入一行會換行的內容,然後在其第一行中輸入並刪除字元。比較終端機顯示的輸出與實際的輸入行為;當編輯換行列不再產生重疊或無法讀取的呈現結果時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。