Closed hyousefGopher closed 4 years ago
The syntax 'var
only allows you to use Rust values from Python, not vice-versa.
Retrieving values back from python is shorty described in the readme:
Getting information back
A Context object could also be used to pass information back to Rust, as you can retrieve the global Python variables from the context through Context::get_global.
More information can be found in the documentation for the Context
struct.
I wrote the below:
The variable
max
is sent correctly from Rust to Python, but the variablez
is not modified in the Python code, it remains zero!