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

Function exec_py

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

Source from the content-addressed store, hash-verified

105 /// `options`: The options are the same as eval mode
106 #[wasm_bindgen(js_name = pyExec)]
107 pub fn exec_py(source: &str, options: Option<Object>) -> Result<(), JsValue> {
108 run_py(source, options, Mode::Exec).map(drop)
109 }
110
111 /// Evaluate Python code
112 ///

Callers

nothing calls this directly

Calls 2

run_pyFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected