python / python/cpython

Ctrl-c not behaving as expected

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

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

3.10 OS-windows type-bug
主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
558

説明

Bug report

ctrl-c does not raise a keyboard interrupt. Problem started when modifed VS 2022 installation to include windows 10 sdk from the visual studio installer. I have already tried to repair and reinstall python and restart my computer but it the problem stays the same. when python is run in shell mode it just exits when ctrl-c is pressed but does not raise the KeyboardInterrupt when ctrl-c is pressed in script without exiting.

Your environment

  • CPython versions tested on: 3.10.5
  • Operating system and architecture: windows 10

https://user-images.githubusercontent.com/94297407/183242398-c253b51d-9997-4318-ae65-bb2a7df739da.mp4

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

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

はじめの一歩

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

調査の方向性

この報告では Windows 10 上の CPython 3.10.5 が挙げられていますが、ソースファイル、テスト、コマンド、再現可能なスクリプトはありません。まずシェルモードとスクリプト内で Ctrl-C を再現し、次に関連する Windows の割り込み動作を追跡してください。期待される KeyboardInterrupt の動作が再現され、回帰テストでカバーされれば完了です。

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

評価

技術スタック
python
領域
cli, operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

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

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