PyO3/pyo3

RFC: Make pyclass immutable by default

Open

#4,369 建立於 2024年7月21日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)Rust (10,152 star) (668 fork)batch import
Good First Issuerefactoring

描述

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.

貢獻者指南