PyO3/pyo3

RFC: Make pyclass immutable by default

Open

#4,369 opened on Jul 21, 2024

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Rust (10,152 stars) (668 forks)batch import
Good First Issuerefactoring

Description

In https://github.com/PyO3/pyo3/pull/1979#pullrequestreview-803253395 we discussed that we'd like to have #[pyclass(mutable)], making pyclasses immutable by default and mutability opt-in.

Currently we have #[pyclass(frozen)] where this is the other way around; they are mutable by default.

Contributor guide

RFC: Make pyclass immutable by default · PyO3/pyo3#4369 | Good First Issue