dgrunwald / rust-cpython

Rust <-> Python bindings
MIT License
1.81k stars 136 forks source link

python3-sys: port Py_3_12 changes from pyo3-ffi #295

Closed quark-zju closed 3 months ago

quark-zju commented 4 months ago

I looked at all Py_3_12 changes in pyo3-ffi/src/cpython and ported them back. Functions, structs, and fields in the code object not already defined in python3-sys are ignored. For PyUnicode_READY, I kept a dummy version so the cpython crate does not need change.

Fixes #294 and https://github.com/facebook/sapling/issues/895

gracinet commented 3 months ago

Thank you so much for doing this!