A multi-byte character in new PyREPL requires two backspaces to delete
未關閉
還沒有人認領這個 Issue。
3.13
3.14
3.15
stdlib
topic-repl
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 35.9k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
Bug report
To reproduce
- Open the new REPL
- Paste:
é - Backspace to remove the pasted character
The paste-able string above is letter 'e' followed by \u0301. To create it use:
print('e\u0301')
The \u0301 is a combining mark with zero-width display length
Current behavior
Two backspaces are required to remove the displayed character
Expected behavior
One backspace is required to remove the displayed character
This is the behavior in the old REPL
CPython versions tested on:
3.14.0, 3.15.0a2
Operating systems tested on:
Linux
Linked PRs
- gh-145332
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,在新的 PyREPL 中使用組合字元字串 e\u0301 重現問題,然後將其刪除行為與舊 REPL 進行比較。當按一次退格鍵即可刪除顯示的字元,且相關行為已由測試涵蓋時,即視為完成;請先檢查已連結的 PR gh-145332,因為相關工作可能已經在進行中。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 32/100