You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyO3 kind of has the same problem as serde: if you wanted to use 3rd-party types in your pyfunctions, the conversion traits (Serialize, FromPyObject) would have to be implemented by the lib that defines them, but usually isn't. In your crate using pyo3, you can then only work with newtype wrappers, which is ok but not great. In particular, it makes using the same functions/methods also from Rust annoying.
I don't really know of a workaround. But I would never have suspected about the one with inventory, used for avoiding specialization, so who knows... 😄
The text was updated successfully, but these errors were encountered:
PyO3 kind of has the same problem as
serde
: if you wanted to use 3rd-party types in yourpyfunction
s, the conversion traits (Serialize
,FromPyObject
) would have to be implemented by the lib that defines them, but usually isn't. In your crate using pyo3, you can then only work with newtype wrappers, which is ok but not great. In particular, it makes using the same functions/methods also from Rust annoying.I don't really know of a workaround. But I would never have suspected about the one with
inventory
, used for avoiding specialization, so who knows... 😄The text was updated successfully, but these errors were encountered: