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

Method exec

crates/wasm/src/vm_class.rs:332–334  ·  view source on GitHub ↗
(&self, source: &str, source_path: Option<String>)

Source from the content-addressed store, hash-verified

330 }
331
332 pub fn exec(&self, source: &str, source_path: Option<String>) -> Result<JsValue, JsValue> {
333 self.run(source, Mode::Exec, source_path)
334 }
335
336 pub fn eval(&self, source: &str, source_path: Option<String>) -> Result<JsValue, JsValue> {
337 self.run(source, Mode::Eval, source_path)

Callers 12

main.jsFile · 0.80
runPythonFunction · 0.80
getPromptFunction · 0.80
run_with_own_gilMethod · 0.80
run_with_shared_gilMethod · 0.80
add_subinterpreterMethod · 0.80
clean_upMethod · 0.80

Calls 1

runMethod · 0.45