PyO3/pyo3

Provide Rust wrappers around PyFrozenDict

Open

#6,158 创建于 2026年6月23日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)Rust (668 fork)batch import
Good First Issue

仓库指标

Star
 (10,152 star)
PR 合并指标
 (平均合并 9天 18小时) (30 天内合并 51 个 PR)

描述

frozendict has been introduced in Python 3.15 and currently pyo3 only expose PyFrozenDict_New through the ffi module.

I believe it would be interesting to provide at PyFrozenDict struct and a PyFrozenDictMethods trait to allow high level manipulation of object of this type from Rust.

Additionally check methods (PyAnyDict_Check and PyAnyDict_CheckExact) should be exposed in the ffi, like the set counterparts.

I can try to work on that but I would be happy to have some pointers about the best way to attack this.

贡献者指南