PyO3/pyo3

RFC: Make pyclass immutable by default

Aberta

#4.369 aberto em 21 de jul. de 2024

 (6 comentários) (0 reação) (0 responsável)Rust (668 forks)batch import
Good First Issuerefactoring

Métricas do repositório

Stars
 (10.152 estrelas)
Métricas de merge de PR
 (Mesclagem média 9d 18h) (51 fundiu PRs em 30d)

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.

Guia do colaborador