PyO3/pyo3

Provide Rust wrappers around PyFrozenDict

クローズ

#6,158 opened on 2026/06/23

 (3 件のコメント) (1 件のリアクション) (0 人の担当者)Rust (668 件のフォーク)batch import
Good First Issue

Repository metrics

Stars
 (10,152 個のスター)
PR merge metrics
 (平均マージ 9d 18h) (30d で 51 merged PRs)

説明

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.

コントリビューターガイド