python / python/cpython

Broken Number Pad on macOS in New Interactive Interpreter in 3.13.0

未關閉
#125,494 12 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

3.13 3.14 OS-mac topic-repl type-bug
主要語言
Python
星號
77.2k
分支
36k
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. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 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 摘要。