Update PyO3 to 0.27.1 and Rust edition to 2021#7
Merged
Conversation
This updates PyO3 from 0.23.5 to 0.27.1, bringing several improvements: - Python 3.14 support (currently in beta) - Enhanced thread-safety guarantees - Improved Bound API performance - Latest bug fixes and security patches Also updates Rust edition from 2018 to 2021 for better language features. Breaking Changes Analysis: - ✅ No code changes required - The codebase already uses modern Bound<PyModule> API (introduced in 0.21) - Does not use any deprecated APIs (downcast, with_gil, GILOnceCell, etc.) - Simple #[pyfunction] and #[pymodule] usage is fully compatible Changes across PyO3 versions 0.23 → 0.27: - 0.24: FromPyObject trait rework (not used in this codebase) - 0.25: Removed deprecated IntoPy/ToPyObject traits (not used) - 0.26: Thread-safety requirements for #[pyclass] (not used) - 0.27: Additional API improvements (no impact on current code) Risk Assessment: VERY LOW - No API changes needed - Already using compatible patterns - Comprehensive CI testing will validate 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This updates PyO3 from 0.23.5 to 0.27.1, bringing several improvements:
Also updates Rust edition from 2018 to 2021 for better language features.
Breaking Changes Analysis:
Changes across PyO3 versions 0.23 → 0.27:
Risk Assessment: VERY LOW
🤖 Generated with Claude Code