The PyO3 upgrade is almost here. Only 3 PRs to go....
# development
f
The PyO3 upgrade is almost here. Only 3 PRs to go. If anybody has time to review, would love to get these landed this week. (And thanks to @happy-kitchen-89482 for reviews thus far!) • https://github.com/pantsbuild/pants/pull/21498https://github.com/pantsbuild/pants/pull/21499 (stacked on previous)https://github.com/pantsbuild/pants/pull/21500 (upgrade to v0.22 and stacked on previous) The big change for everyone to be aware of is that
&PyAny
and similar references to Rust-side Python values are no longer permitted. PyO3 now requires all accesses to go through the
pyo3::Bound
smart pointer instead. So
Py
for references independent of the GIL and
Bound
for GIL-bound references.