[][src]Function rustpython_wasm::exec_single_py

pub fn exec_single_py(
    source: &str,
    options: Option<Object>
) -> Result<JsValue, JsValue>

Evaluate Python code

var result = pyExecSingle(code, options?);

code: string: The Python code to run in exec single mode

options: The options are the same as eval mode