feat(ffi): add Python 3.14 context watcher API#6204
Conversation
6535a6a to
5c25a54
Compare
|
This file should be moved to the cpython folder. To mirror upstream. |
|
This makes sense to me. Should i do it in this PR ? Or move it in a prior PR and then add the watcher API ? |
Yes please, you can do it here. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ed420e5f6f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
The RustPython bindings still need to stay outside of the cpython module which is marked with Is this the correct approach in these cases ? |
RustPython only supports abi3/abi3t so these functions are not exposed. So you can remove all RustPython cfg attributes. |
da0c232 to
454b758
Compare
|
Thanks! LGTM |
Python 3.14 added a context watcher API for observing
contextvars.Contextswitches.This exposes the raw declarations in
pyo3-ffi.Relevant links: