Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
eval
Function · 0.80
bench_rustpython_code
Function · 0.80
bench_rustpython_code
Function · 0.80
get_pip
Function · 0.80
py_main
Function · 0.80
main
Function · 0.80
run
Function · 0.80
run
Function · 0.80
new
Method · 0.80
test_print_42
Function · 0.80
run_simple_string
Method · 0.80
new_scope_with_main
Method · 0.80
Calls
1
new_dict
Method · 0.80
Tested by
2
test_print_42
Function · 0.64
test_nested_frozen
Function · 0.64