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

Function interpreter_with_vm

example_projects/frozen_stdlib/src/main.rs:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28fn interpreter_with_vm() {
29 let interpreter = rustpython_vm::Interpreter::builder(Default::default())
30 .add_frozen_modules(rustpython_pylib::FROZEN_STDLIB)
31 .build();
32 // Use interpreter.enter to reuse the same interpreter later
33 interpreter.run(|vm| run("rustpython_vm::Interpreter::builder", vm));
34}
35
36fn main() {
37 interpreter_with_config();

Callers 1

mainFunction · 0.85

Calls 4

add_frozen_modulesMethod · 0.80
runFunction · 0.70
buildMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected