PyO3/pyo3

RFC: Make pyclass immutable by default

オープン

#4,369 opened on 2024/07/21

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (668 件のフォーク)batch import
Good First Issuerefactoring

Repository metrics

Stars
 (10,152 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド