python / python/cpython

Broken Number Pad on macOS in New Interactive Interpreter in 3.13.0

オープン
#125,494 コメント 12 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

3.13 3.14 OS-mac topic-repl type-bug
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Bug report

Bug description:

When using the new interactive interpreter, digits can no longer be entered using the number pad on a standard full-size Mac keyboard. This did not occur in 3.12 or earlier and is likely not desired behaviour.

Workaround:
Pressing the "clear" button on the keyboard will fix this (acting like a toggle). I suspect this is because the Mac clear key shares a key code with "Num Lock" on Windows, where this is standard behaviour.

This is NOT standard behaviour on macOS, however. MacOS keyboards do not have a "Num Lock", nor do their keyboards have markings for secondary actions as with windows keyboards.
MQ052
I imagine that very few users would recognize that their number pad is not working in the new Python interpreter because of a mis-applied platform-specific key binding of the "clear" key.

CPython versions tested on:

3.13.0

Operating systems tested on:

macOS

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、Python 3.13.0 を使用する macOS の新しい対話型インタープリターでテンキーの動作を再現し、Python 3.12 以前と比較します。macOS におけるインタープリターのキー処理、特に Clear キーの動作を追跡します。テンキーの数字が Clear を押さずに通常どおり機能し、既存の動作が維持されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。