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

Function interpreter_with_config

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

Source from the content-addressed store, hash-verified

18}
19
20fn interpreter_with_config() {
21 let interpreter = rustpython::InterpreterBuilder::new()
22 .init_stdlib()
23 .interpreter();
24 // Use interpreter.enter to reuse the same interpreter later
25 interpreter.run(|vm| run("rustpython::InterpreterBuilder", vm));
26}
27
28fn interpreter_with_vm() {
29 let interpreter = rustpython_vm::Interpreter::builder(Default::default())

Callers 1

mainFunction · 0.85

Calls 5

newFunction · 0.85
init_stdlibMethod · 0.80
runFunction · 0.70
interpreterMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected