Skip to content

Update PyO3 to 0.27.1 and Rust edition to 2021#7

Merged
cjermain merged 1 commit intomainfrom
claude/pyo3-027-011CUYo18ZqbutpJ67DM6jab
Oct 29, 2025
Merged

Update PyO3 to 0.27.1 and Rust edition to 2021#7
cjermain merged 1 commit intomainfrom
claude/pyo3-027-011CUYo18ZqbutpJ67DM6jab

Conversation

@cjermain
Copy link
Copy Markdown
Owner

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 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

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]>
@cjermain cjermain merged commit 155d250 into main Oct 29, 2025
2 checks passed
@cjermain cjermain deleted the claude/pyo3-027-011CUYo18ZqbutpJ67DM6jab branch October 29, 2025 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants