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

Method new_scope_with_builtins

crates/vm/src/vm/vm_new.rs:62–64  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

60 }
61
62 pub fn new_scope_with_builtins(&self) -> Scope {
63 Scope::with_builtins(None, self.ctx.new_dict(), self)
64 }
65
66 pub fn new_scope_with_main(&self) -> PyResult<Scope> {
67 let scope = self.new_scope_with_builtins();

Callers 13

evalFunction · 0.80
bench_rustpython_codeFunction · 0.80
bench_rustpython_codeFunction · 0.80
get_pipFunction · 0.80
py_mainFunction · 0.80
mainFunction · 0.80
runFunction · 0.80
runFunction · 0.80
newMethod · 0.80
test_print_42Function · 0.80
run_simple_stringMethod · 0.80
new_scope_with_mainMethod · 0.80

Calls 1

new_dictMethod · 0.80

Tested by 2

test_print_42Function · 0.64
test_nested_frozenFunction · 0.64