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

Method current_globals

crates/vm/src/vm/mod.rs:1748–1753  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1746 }
1747
1748 pub fn current_globals(&self) -> PyDictRef {
1749 self.current_frame()
1750 .expect("called current_globals but no frames on the stack")
1751 .globals
1752 .clone()
1753 }
1754
1755 pub fn try_class(&self, module: &'static str, class: &'static str) -> PyResult<PyTypeRef> {
1756 let class = self

Callers 2

make_scopeMethod · 0.80
globalsFunction · 0.80

Calls 2

current_frameMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected