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

Method run_code_string

crates/vm/src/vm/python_run.rs:43–45  ·  view source on GitHub ↗
(&self, scope: Scope, source: &str, source_path: String)

Source from the content-addressed store, hash-verified

41
42 #[deprecated(note = "use run_string instead")]
43 pub fn run_code_string(&self, scope: Scope, source: &str, source_path: String) -> PyResult {
44 self.run_string(scope, source, source_path)
45 }
46
47 pub fn run_block_expr(&self, scope: Scope, source: &str) -> PyResult {
48 let code_obj = self

Callers

nothing calls this directly

Calls 1

run_stringMethod · 0.80

Tested by

no test coverage detected