PyO3/pyo3

RFC: Make pyclass immutable by default

Offen

#4.369 geöffnet am 21.07.2024

 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (668 Forks)batch import
Good First Issuerefactoring

Repository-Metriken

Stars
 (10.152 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 9T 18h) (51 gemergte PRs in 30 T)

Beschreibung

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