Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ SimpleNamespace
Function
SimpleNamespace
crates/vm/src/stdlib/_types.rs:139–141 ·
view source on GitHub ↗
(vm: &VirtualMachine)
Source
from the content-addressed store, hash-verified
137
138
#[pyattr]
139
fn SimpleNamespace(vm: &VirtualMachine) -> PyObjectRef {
140
vm.ctx.types.namespace_type.to_owned().into()
141
}
142
143
#[pyattr]
144
fn TracebackType(vm: &VirtualMachine) -> PyObjectRef {
Callers
7
test_gh86298_loader_is_none_and_spec_loader_is_none
Method · 0.90
test_gh86298_no_spec_loader
Method · 0.90
test_gh86298_loader_and_spec_loader_disagree
Method · 0.90
test_gh86298_no_loader_and_no_spec_loader
Method · 0.90
test_gh86298_no_loader_with_spec_loader_okay
Method · 0.90
nested
Function · 0.90
nested
Function · 0.90
Calls
1
to_owned
Method · 0.45
Tested by
5
test_gh86298_loader_is_none_and_spec_loader_is_none
Method · 0.72
test_gh86298_no_spec_loader
Method · 0.72
test_gh86298_loader_and_spec_loader_disagree
Method · 0.72
test_gh86298_no_loader_and_no_spec_loader
Method · 0.72
test_gh86298_no_loader_with_spec_loader_okay
Method · 0.72