Skip to content

[RFC]  #4124

Open
Open
[RFC] #4124
@Gelox

Description

@Gelox

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

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRequest for comments

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions