Add PEP 741 PyInitConfig API to the limited C API
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
The GDB project would be interested to use the limited C API to embed Python. Some APIs used by GDB are missing from the limited C API (well, it's limited ;-)), one of them is the PEP 741 PyInitConfig API.
I propose adding PEP 741 PyInitConfig API to the limited C API.
PEP 741 Rationale lists other projects embedding Python. More projects would benefit from PyInitConfig being in the limited C API.
For example, the vim text editor uses dlopen/dlsym and GetProcAddress on Windows to get Python symbols at runtime. The libpython library is loaded on demand (at the first Python usage). vim already supports the stable ABI. See src/if_python3.c.
So far, I found pyinstaller which already adopted the PyInitConfig API.
Linked PRs
- gh-149194
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
PEP 741 の埋め込みに関する根拠を読み、Vim の src/if_python3.c を調べて limited ABI のユースケースを理解してください。次に、リンクされた PR gh-149194 と limited C API に関する作業を確認してください。PyInitConfig がこの API を通じて Python を埋め込むプロジェクトで利用可能になれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- c, python
- 領域
- api, backend
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100