()
| 18 | } |
| 19 | |
| 20 | fn 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 | |
| 28 | fn interpreter_with_vm() { |
| 29 | let interpreter = rustpython_vm::Interpreter::builder(Default::default()) |
no test coverage detected