PyO3/pyo3

RFC: Make pyclass immutable by default

Ouverte

#4 369 ouverte le 21 juil. 2024

 (6 commentaires) (0 réaction) (0 personne assignée)Rust (668 forks)batch import
Good First Issuerefactoring

Métriques du dépôt

Stars
 (10 152 étoiles)
Métriques de merge PR
 (Merge moyen 9j 18h) (51 PRs mergées en 30 j)

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.

Guide contributeur