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

Method current_locals

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

Source from the content-addressed store, hash-verified

1740 }
1741
1742 pub fn current_locals(&self) -> PyResult<ArgMapping> {
1743 self.current_frame()
1744 .expect("called current_locals but no frames on the stack")
1745 .locals(self)
1746 }
1747
1748 pub fn current_globals(&self) -> PyDictRef {
1749 self.current_frame()

Callers 4

make_scopeMethod · 0.80
localsFunction · 0.80
varsFunction · 0.80
dirMethod · 0.80

Calls 2

localsMethod · 0.80
current_frameMethod · 0.80

Tested by

no test coverage detected