How to wrap a PyDict in PyO3 with a constructor that takes a new parameter?
I am using PyO3 (v0.22.2) / Rust to write something a little similar to defaultdict
, but with an integer default rather than a callback:
I am using PyO3 (v0.22.2) / Rust to write something a little similar to defaultdict
, but with an integer default rather than a callback: