rust-cpython
rust-cpython copied to clipboard
Initial support for Python 3.11 beta
This is obviously experimental but it works okay.
All the tests pass and the example prints the following:
$ cargo run --example hello --features python-3-11 Hello nicholas, I'm Python 3.11.0b1 (v3.11.0b1:8d32a5c8c4, May 6 2022, 22:45:29) [Clang 13.0.0 (clang-1300.0.29.30)]
I figure it's best to be proactive with these change, so that way we are ready as soon as 3.11 proper is released (October I think).
MAin difference in 3.11 that frame object is now private (and lazy loaded). This results in a performance improvement but makes it harder for debuggers. Also the internal ordering of code objects has completely changed as well.
If you want, you are free to merge right now. I just figured we'd wait until 3.11 was more developed.....
We should wait for the RC which typically is ABI-compatible with the final release. Can you rebase your branch onto the current master? I've fixed the failure with Rust 1.41.1.
We should wait for the RC which typically is ABI-compatible with the final release.
I agree. We should wait to the RC before pulling this.
Can you rebase your branch onto the current master? I've fixed the failure with Rust 1.41.1.
Done! Tests still appear to be failing though. This fixes most of the tests. However there is something about "ast-json" on 2.7 nightly
I'm continuing work on python 3.11 support on https://github.com/dgrunwald/rust-cpython/tree/py3.11
Awesome! Thanks 👍