allow __setitem__
on Hashmap
s when #[pyo3(set)]
is specified
#3026
Labels
__setitem__
on Hashmap
s when #[pyo3(set)]
is specified
#3026
Here is a small code snippet to explain what I am trying to achieve:
Rust:
Python:
Output:
As you can see, it seems the inner
Hashmap
ofDict
cannot be modified through the__setitem__
dunder method (i.e.test_dict.inner["test"] = "hello"
) while it is doable forPyDict
. Is it possible to enable the use of this method through#[pyo3(set)]
?The text was updated successfully, but these errors were encountered: