MCPcopy Index your code
hub / github.com/RustPython/RustPython / exec_single_py

Function exec_single_py

crates/wasm/src/lib.rs:121–123  ·  view source on GitHub ↗
(source: &str, options: Option<Object>)

Source from the content-addressed store, hash-verified

119 /// `options`: The options are the same as eval mode
120 #[wasm_bindgen(js_name = pyExecSingle)]
121 pub fn exec_single_py(source: &str, options: Option<Object>) -> Result<JsValue, JsValue> {
122 run_py(source, options, Mode::Single)
123 }
124}
125
126/// A module containing all the wasm-bindgen exports that rustpython_wasm has

Callers

nothing calls this directly

Calls 1

run_pyFunction · 0.85

Tested by

no test coverage detected