[Feature Request]: PyContextVar_Reset() is missing
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 22/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Python
- Sterne
- 1.7k
- Forks
- 155
- Ø Merge
- 6 Std. 26 Min.
- Gemergte PRs (30 T.)
- 53
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus oracle/graalpython
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
oracle/graalpython#1105 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
oracle/graalpython#1102 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: invalid signature of int.__new__ and missing signatures for __new__ dunders in extensionsOffenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
oracle/graalpython#1192 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 74/100
oracle/graalpython#1133 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
oracle/graalpython#1112 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in oracle/graalpython
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 3 Tagen
-
Negation with "not" and "no" is ignored during sentiment analysisEvtl. vergeben @vivek-3728 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
techcsispit/mess-mood#11 · 1 Kommentar ·
-
changelog investigate
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ramnes/notion-sdk-py#408 ·
-
good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
btclib-org/btclib-wallet#267 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue tech-debt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
knnmelprop/YAADO#111 ·