Ctrl+Alt+L is broken after upgrading to Python 3.13
未關閉
還沒有人認領這個 Issue。
stdlib
topic-repl
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
- Open
python3for the REPL - Run anything like
1+2 - Press Ctrl + Alt + L
Expended behavior from Python 3.12
The screen should be cleared with only ">>>" remaining, and the scrollbar should indicate no history.
Actual behavior on Python 3.13+
Nothing happens, and the "3" is still there.
Tested on Python 3.13.3 (main, Apr 8 2025, 19:55:40) [GCC 14.2.0] on linux and Python 3.15.0a0 (heads/main:57fef27cfc, May 25 2025, 13:55:21) [GCC 14.2.0] on linux
Note that Ctrl + L still works, but it is designed to not clear history.
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
- gh-138521
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
在 Linux 上使用 Ctrl+Alt+L 步驟,在 Python 3.13+ REPL 中重現該行為,然後追蹤 REPL 的輸入處理,並與 Python 3.12 進行比較。當該快捷鍵如描述般清除畫面和歷史記錄顯示,同時 Ctrl+L 維持現有行為時,即視為完成。開始前請查看已連結的 PR gh-138521,因為 issue 表示相關工作已在進行中。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100