Skip to content

Upgrading pyo3 0.27 to 0.28

Breaking0.27.2 → 0.28.3Security1Platform1New3Changed1Fixed8Other3

BreakingUpgrade verdict

A platform requirement change and a security fix.

  • Support for subclassing many Python types with the abi3 feature (requires Python 3.12+).
  • Type confusion when accessing data from sublasses of subclasses of native types with `abi3` feature targeting Python 3.12 and up
2 items need code or config changes

pyo3 publishes an official migration guide for version 0.28. It covers more than the release notes do.

Migration guide ↗

Rust requirement changed in 0.28.0: 1.74 → 1.83.

Security1
Type confusion when accessing data from sublasses of subclasses of native types with abi3 feature targeting Python 3.12 and up
Platform1
Support for subclassing many Python types with the abi3 feature (requires Python 3.12+).
abi3