PyO3/pyo3

Provide Rust wrappers around PyFrozenDict

Open

#6.158 geöffnet am 23. Juni 2026

Auf GitHub ansehen
 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)Rust (668 Forks)batch import
Good First Issue

Repository-Metriken

Stars
 (10.152 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 9T 18h) (51 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide