PyO3/pyo3

RFC: Make pyclass immutable by default

开放

#4,369 创建于 2024年7月21日

 (6 条评论) (0 个反应) (0 位负责人)Rust (668 个派生)batch import
Good First Issuerefactoring

仓库指标

星标
 (10,152 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南