subprocess.Popen: warnings.warn() calls missing stacklevel=2
オープン
まだ誰も着手していません。
stdlib
topic-multiprocessing
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Both warnings.warn() calls in subprocess.Popen.__init__ are missing stacklevel=2:
- POSIX path (line 915): Warning when
pass_fdsoverridesclose_fds - Windows path (line 1569): Warning when
startupinfo.lpAttributeList['handle_list']overridesclose_fds
Without stacklevel=2, the warning points to an internal line inside subprocess.py rather than the caller's Popen() invocation, making it harder for users to locate the source.
PR: #148400
Linked PRs
- gh-148400
- gh-148668
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
subprocess.py の、915 行目と 1569 行目で特定されている POSIX および Windows の warnings.warn() 呼び出しから始め、既存の対応について PR #148400 を確認してください。両方の警告が subprocess.py 内部の行ではなく、caller の Popen() 呼び出しを指すようになれば、変更は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- operating-systems
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 25/100