Open
Description
Summary
Provide an example for how to provide a rust object as an argument to python from rust and how to call a rust function with a python object argument from python.
Detailed Explanation
Currently it is unclear to me how one would
- Call a python function and provide a rust object as an argument to it except for creating a
String
representation of the Python object and compiling it, running some code that initializes it as a local variable and then calls the function with the local variable right after. If this is the idiomatic way then an example would be nice to clarify that. - Call a rust function from python, especially when using complicated types like channels in order to communicate with rust.
Hopefully this is possible, I'd be willing to create a PR for the examples if someone tells me understand.