ctrl-w deletes words with punctuation instead of whitespace boundary
未關閉
還沒有人認領這個 Issue。
stdlib
topic-repl
triaged
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
I am used to ctrl-w deleting entire words, using whitespace as the boundary. Based on https://github.com/python/cpython/blob/3.14/Lib/_pyrepl/reader.py#L81, I think the Python REPL is supposed to do that?
However, ctrl-w currently deletes words using punctuation+whitespace as the boundary.
CPython versions tested on:
3.14
Operating systems tested on:
macOS
Linked PRs
- gh-146174
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 Lib/_pyrepl/reader.py 約第 81 行開始,該 issue 指出此處與 REPL 行為相關。在 macOS 上的 Python 3.14 REPL 中重現 ctrl-w,並將目前的刪除邊界與所要求的空白邊界進行比較。當標點符號如描述的那樣仍然屬於被刪除單字的行為時,即可視為完成;連結的 PR gh-146174 提供了背景資訊。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 25/100