ctrl-w deletes words with punctuation instead of whitespace boundary
オープン
まだ誰も着手していません。
stdlib
topic-repl
triaged
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
REPL の動作に関連すると issue が特定している Lib/_pyrepl/reader.py の 81 行目付近から始めます。macOS 上の Python 3.14 REPL で ctrl-w を再現し、現在の削除境界と要求されている空白境界を比較します。説明されているとおり、句読点が引き続き削除される単語の一部となる動作になっていれば完了です。リンクされた PR gh-146174 がコンテキストを提供します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 25/100