Add C API equivalent for `sys._is_gil_enabled()`
オープン
まだ誰も着手していません。
pending
topic-C-API
topic-free-threading
type-feature
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Feature or enhancement
Proposal:
sys._is_gil_enabled is documented as a CPython implementation detail - it would be good to have a C API to expose this in a stable way to C modules. Possibly, something like
int PyInterpreterState_IsGilEnabled(PyInterpreterState *interp)
We'd like to have a stable way to expose this information downstream, https://github.com/jpy-consortium/jpy/pull/218
Has this already been discussed elsewhere?
Links to previous discussion of this feature:
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、既存の sys._is_gil_enabled のドキュメントと、GIL の状態を問い合わせるための C API に関するリンク先の議論を読んでください。合意された API の形を決定する前に、下流の jpy pull request と既存の安定した C API の慣例を確認してください。C モジュールで利用できる、文書化された安定した C API が提供されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- c, python
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100