[Feature Request]: PyContextVar_Reset() is missing
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start in GraalPy's C API layer (the cext module under com.oracle.graal.python), where PyContextVar_New/Get/Set wrappers already exist, and follow them to the Python-level contextvars implementation they delegate to. Mirror CPython's PyContextVar_Reset semantics for resetting a var to its previous value/token, export the new symbol, and check the gmpy2 PR 721 use case builds. Done means C extensions can call it and existing contextvars tests still pass.
由索引模型根據 Issue 內容生成。
描述
Describe the feature
I'm trying to port gmpy2 extension (https://github.com/gmpy2/gmpy2/pull/721). One problem is lack of this function, it used to implement context managers.
Expected behavior
PyContext structure and co are opaque. Hence, I don't think that it's possible to provide an alternative to this API in applications. I appreciate, if this function will be available in GraalPy.
Additional context
No response
- 主要語言
- Python
- 星號
- 1.7k
- 分支
- 163
- 平均合併
- 1 天 3 小時
- 30 天內合併 PR
- 50
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
oracle/graalpython 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 74/100
oracle/graalpython#1105 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
oracle/graalpython#1102 ·
維護者通常 1 天內回覆
-
enhancement
難度 4/5 3-5 天 新手友好度 35/100
oracle/graalpython#1217 ·
維護者通常 1 天內回覆
-
enhancement
難度 4/5 3-5 天 新手友好度 54/100
oracle/graalpython#1212 ·
維護者通常 1 天內回覆
-
[Bug]: invalid signature of int.__new__ and missing signatures for __new__ dunders in extensions未關閉bug
難度 4/5 3-5 天 新手友好度 48/100
oracle/graalpython#1192 ·
維護者通常 1 天內回覆
查看 oracle/graalpython 的全部 Issue
相似的 Issue
-
changelog investigate
難度 2/5 1-3 小時 新手友好度 67/100
ramnes/notion-sdk-py#433 ·
-
docs pkg:core
難度 1/5 1 小時以內 新手友好度 84/100
pydantic/pydantic-ai#11929 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
intake/intake-esm#789 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
MemMachine/MemMachine#1877 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
openedx/openedx-authz#579 ·
維護者通常 1 天內回覆