Replies: 1 comment
-
It's handled by introducing let task_code = PyBytes::new(py, &buffer);
let task_code = PyTuple::new(py, &[task_code]); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using following code to dump Python function into a file:
hello.py
flame.py
After dump the python func and objects, I'd like to execute them in Rust by PyO3 as follow:
But I got the following error during execution:
So I'd like to know to pass through a bytes-like object as args for
dill.load
?xref: https://github.com/k82cn/rust-learning/tree/main/pyo3
Beta Was this translation helpful? Give feedback.
All reactions