IDLE gets confused when switching between tabs and spaces.
オープン
まだ誰も着手していません。
stdlib
topic-IDLE
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
Bug description:
My IDLE is set to the default 4-space indent. When I switch to using tabs through whatever the keyboard for toggle-tabs, after the popup message, the tab key generates the tab character.
If I switch back to using spaces using the same keyboard shortcut, I find that the tab key generates eight spaces instead of the usual four. I don’t think that’s the intended behaviour.
This is fixed after restarting IDLE.
CPython versions tested on:
3.14
Operating systems tested on:
Windows 11 & macOS
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Windows 11 または macOS 上の Python 3.14 で、toggle-tabs キーボードショートカットを使って 4 つのスペースによるインデントからタブに切り替え、その後に戻すことで、IDLE で問題を再現します。toggle-tabs の動作を追跡し、IDLE を再起動せずにスペースに戻した後、Tab キーによって 4 つのスペースが生成されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- desktop, tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100