PyO3
pyo3
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Remove static type references
bschoenmaeckers:RustPython-type-statics
2 hours ago
fix: use subclass check for AttributeError in getattr_opt on Python < 3.13 (#5985) * fix: use subclass check for AttributeError in getattr_opt on Python < 3.13 The `#[cfg(not(Py_3_13))]` branch of `getattr_opt` used `.is()` (type identity) to check for `AttributeError`, which missed subclasses. This replaces it with `.is_subclass_of::<PyAttributeError>()` to match the behavior of `PyObject_GetOptionalAttr` on Python 3.13+. * chore: rename newsfragment to PR #5985 * fix: use infallible is_instance_of instead of fallible is_subclass_of Switch from `err.get_type().is_subclass_of::<PyAttributeError>()?` to `err.is_instance_of::<PyAttributeError>()` which is infallible and avoids masking the original error if the subclass check itself fails. This also matches the pattern used by `hasattr` in the same file. * fix: add PyObject_GetOptionalAttr compat shim and use it for all versions Add a compatibility shim for PyObject_GetOptionalAttr in pyo3-ffi/src/compat/py_3_13.rs that uses PyObject_GetAttr + PyErr_ExceptionMatches on Python < 3.13, matching the real C API behavior on 3.13+. Simplify getattr_opt to use the compat function unconditionally, removing the #[cfg] branching.
main
4 hours ago
fix error with named lifetimes in `#[new]` return types (#5998)
main
4 hours ago
add Sealed to pyclass traits (#5845)
main
4 hours ago
Remove errors when type annotations used without `experimental-inspect`
tbates-redarc:allow-types-always
8 hours ago
ci: use `setup-python` install so codspeed builds flamegraphs correctly (#5997)
main
20 hours ago
Use `Py_IS_TYPE` on abi3 & python 3.15+ (#5977) * Use `Py_IS_TYPE` on abi3 & python 3.15+ * Delete changelog
main
21 hours ago
fix error with named lifetimes in `#[new]` return types
Icxolu:fix-new-bound
22 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
Do not use static type references when compiling for `RustPython`
#5995
1 day ago
68bfc26
bschoenmaeckers:RustPython-type-statics
CodSpeed Performance Gauge
0%
Remove errors when type annotations used without `experimental-inspect`
#5999
9 hours ago
9fa312f
tbates-redarc:allow-types-always
CodSpeed Performance Gauge
0%
fix error with named lifetimes in `#[new]` return types
#5998
23 hours ago
fca4b21
Icxolu:fix-new-bound
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs