mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
module_exec
This commit is contained in:
1 parent
32d2406fa8
commit
bc02b2318c
38 files changed
+249
-333
No files matched your search
@@ -114,9 +114,7 @@ fn bench_rustpython_code(group: &mut BenchmarkGroup<WallTime>, bench: &MicroBenc
|
||||
settings.user_site_directory = false;
|
||||
|
||||
Interpreter::with_init(settings, |vm| {
|
||||
for (name, init) in rustpython_stdlib::get_module_inits() {
|
||||
vm.add_native_module(name, init);
|
||||
}
|
||||
vm.add_native_module_defs(rustpython_stdlib::get_module_defs());
|
||||
})
|
||||
.enter(|vm| {
|
||||
let setup_code = vm
|
||||
|
||||
Reference in new issue
Block a user